mirror of
https://github.com/pestphp/pest.git
synced 2026-09-05 14:23:34 +02:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ae080becd6 | |||
| aa86304794 | |||
| 75963ea973 | |||
| 5d0ceb1a5d | |||
| 6f0c0536a4 |
+4
-4
@@ -18,19 +18,19 @@
|
|||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.4",
|
"php": "^8.4",
|
||||||
"brianium/paratest": "^7.23.0",
|
"brianium/paratest": "^7.23.1",
|
||||||
"nunomaduro/collision": "^8.9.5",
|
"nunomaduro/collision": "^8.9.5",
|
||||||
"nunomaduro/termwind": "^2.4.0",
|
"nunomaduro/termwind": "^2.4.0",
|
||||||
"pestphp/pest-plugin": "^5.0.0",
|
"pestphp/pest-plugin": "^5.0.0",
|
||||||
"pestphp/pest-plugin-arch": "^5.0.0",
|
"pestphp/pest-plugin-arch": "^5.0.0",
|
||||||
"pestphp/pest-plugin-mutate": "^5.0.0",
|
"pestphp/pest-plugin-mutate": "^5.0.0",
|
||||||
"pestphp/pest-plugin-profanity": "^5.0.0",
|
"pestphp/pest-plugin-profanity": "^5.0.0",
|
||||||
"phpunit/phpunit": "^13.2.4",
|
"phpunit/phpunit": "^13.2.6",
|
||||||
"symfony/process": "^8.1.0"
|
"symfony/process": "^8.1.0"
|
||||||
},
|
},
|
||||||
"conflict": {
|
"conflict": {
|
||||||
"filp/whoops": "<2.18.3",
|
"filp/whoops": "<2.18.3",
|
||||||
"phpunit/phpunit": ">13.2.4",
|
"phpunit/phpunit": ">13.2.6",
|
||||||
"sebastian/exporter": "<7.0.0",
|
"sebastian/exporter": "<7.0.0",
|
||||||
"webmozart/assert": "<1.11.0"
|
"webmozart/assert": "<1.11.0"
|
||||||
},
|
},
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"laravel/pao": "^1.1.2",
|
"laravel/pao": "^1.1.3",
|
||||||
"pestphp/pest-dev-tools": "^5.0.0",
|
"pestphp/pest-dev-tools": "^5.0.0",
|
||||||
"pestphp/pest-plugin-browser": "^5.0.0",
|
"pestphp/pest-plugin-browser": "^5.0.0",
|
||||||
"pestphp/pest-plugin-phpstan": "^5.0.0",
|
"pestphp/pest-plugin-phpstan": "^5.0.0",
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ namespace Pest;
|
|||||||
|
|
||||||
function version(): string
|
function version(): string
|
||||||
{
|
{
|
||||||
return '5.0.0-beta.1';
|
return '5.0.2';
|
||||||
}
|
}
|
||||||
|
|
||||||
function testDirectory(string $file = ''): string
|
function testDirectory(string $file = ''): string
|
||||||
|
|||||||
@@ -114,6 +114,41 @@ final readonly class Help implements HandlesArguments
|
|||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
$content['Tia'] = [
|
||||||
|
[
|
||||||
|
'arg' => '--tia',
|
||||||
|
'desc' => 'Re-run only the tests affected by your changes, replaying the rest from cache',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'arg' => '--no-tia',
|
||||||
|
'desc' => 'Disable test impact analysis for this run',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'arg' => '--tia --fresh',
|
||||||
|
'desc' => 'Discard the recorded dependency graph and record it again',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'arg' => '--tia --filtered',
|
||||||
|
'desc' => 'Narrow the run to the affected test files only',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'arg' => '--tia --locally',
|
||||||
|
'desc' => 'Enable test impact analysis on local machines only',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'arg' => '--tia --baselined',
|
||||||
|
'desc' => 'Fetch the shared dependency graph recorded by the CI baseline',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'arg' => '--tia --refetch',
|
||||||
|
'desc' => 'Force a fresh fetch of the shared dependency graph',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'arg' => '--baseline',
|
||||||
|
'desc' => 'Output to standard output the test impact analysis storage directory',
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
$content['Execution'] = [...[
|
$content['Execution'] = [...[
|
||||||
[
|
[
|
||||||
'arg' => '--parallel',
|
'arg' => '--parallel',
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ final class Recorder
|
|||||||
public function driverAvailable(): bool
|
public function driverAvailable(): bool
|
||||||
{
|
{
|
||||||
if (! $this->driverChecked) {
|
if (! $this->driverChecked) {
|
||||||
if (function_exists('pcov\\start')) {
|
if (function_exists('pcov\\start') && filter_var((string) ini_get('pcov.enabled'), FILTER_VALIDATE_BOOL)) {
|
||||||
$this->driver = 'pcov';
|
$this->driver = 'pcov';
|
||||||
$this->driverAvailable = true;
|
$this->driverAvailable = true;
|
||||||
} elseif (function_exists('xdebug_start_code_coverage') && function_exists('xdebug_info')) {
|
} elseif (function_exists('xdebug_start_code_coverage') && function_exists('xdebug_info')) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Pest Testing Framework 5.0.0-beta.1.
|
Pest Testing Framework 5.0.2.
|
||||||
|
|
||||||
USAGE: pest <file> [options]
|
USAGE: pest <file> [options]
|
||||||
|
|
||||||
@@ -168,6 +168,16 @@
|
|||||||
AI OPTIONS:
|
AI OPTIONS:
|
||||||
--ai ..... Run a code snippet as a fully scaffolded test for AI verification
|
--ai ..... Run a code snippet as a fully scaffolded test for AI verification
|
||||||
|
|
||||||
|
TIA OPTIONS:
|
||||||
|
--tia Re-run only the tests affected by your changes, replaying the rest from cache
|
||||||
|
--no-tia ......................... Disable test impact analysis for this run
|
||||||
|
--tia --fresh .... Discard the recorded dependency graph and record it again
|
||||||
|
--tia --filtered ............ Narrow the run to the affected test files only
|
||||||
|
--tia --locally ......... Enable test impact analysis on local machines only
|
||||||
|
--tia --baselined Fetch the shared dependency graph recorded by the CI baseline
|
||||||
|
--tia --refetch ......... Force a fresh fetch of the shared dependency graph
|
||||||
|
--baseline Output to standard output the test impact analysis storage directory
|
||||||
|
|
||||||
MUTATION TESTING OPTIONS:
|
MUTATION TESTING OPTIONS:
|
||||||
--mutate .... Runs mutation testing, to understand the quality of your tests
|
--mutate .... Runs mutation testing, to understand the quality of your tests
|
||||||
--mutate --parallel ...................... Runs mutation testing in parallel
|
--mutate --parallel ...................... Runs mutation testing in parallel
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
|
|
||||||
Pest Testing Framework 5.0.0-beta.1.
|
Pest Testing Framework 5.0.2.
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ class State
|
|||||||
{
|
{
|
||||||
public array $runCount = [];
|
public array $runCount = [];
|
||||||
|
|
||||||
public array $appliedCount = [];
|
public array $appliedCount;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user