mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 09:17:23 +01:00
feat: pr and issue
This commit is contained in:
@ -21,7 +21,7 @@ trait HandleArguments
|
||||
return true;
|
||||
}
|
||||
|
||||
if (str_starts_with((string) $arg, "$argument=")) {
|
||||
if (str_starts_with((string) $arg, "$argument=")) { // @phpstan-ignore-line
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -126,6 +126,18 @@ final class Help implements HandlesArguments
|
||||
], [
|
||||
'arg' => '--notes',
|
||||
'desc' => 'Output to standard output tests with notes',
|
||||
], [
|
||||
], [
|
||||
'arg' => '--issue',
|
||||
'desc' => 'Output to standard output tests with the given issue number',
|
||||
], [
|
||||
], [
|
||||
'arg' => '--pr',
|
||||
'desc' => 'Output to standard output tests with the given pull request number',
|
||||
], [
|
||||
], [
|
||||
'arg' => '--pull-request',
|
||||
'desc' => 'Output to standard output tests with the given pull request number (alias for --pr)',
|
||||
], [
|
||||
'arg' => '--retry',
|
||||
'desc' => 'Run non-passing tests first and stop execution upon first error or failure',
|
||||
|
||||
@ -34,7 +34,7 @@ final class Parallel implements HandlesArguments
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
private const UNSUPPORTED_ARGUMENTS = ['--todo', '--todos', '--retry', '--notes'];
|
||||
private const UNSUPPORTED_ARGUMENTS = ['--todo', '--todos', '--retry', '--notes', '--issue', '--pr', '--pull-request'];
|
||||
|
||||
/**
|
||||
* Whether the given command line arguments indicate that the test suite should be run in parallel.
|
||||
|
||||
Reference in New Issue
Block a user