'Path to the configuration file for PHPUnit. If not specified, it defaults to core configuration.',
));
$inputDefinition->addOption(newInputOption(
'list',
NULL,
InputOption::VALUE_NONE,
'Display all available test groups.',
));
$inputDefinition->addOption(newInputOption(
'list-files',
NULL,
InputOption::VALUE_NONE,
'Display all discoverable test file paths.',
));
$inputDefinition->addOption(newInputOption(
'list-files-json',
NULL,
InputOption::VALUE_NONE,
"Display all discoverable test files as JSON.\nThe array key will be the test class name, and the value will be the file path of the test.",
));
$inputDefinition->addOption(newInputOption(
'clean',
NULL,
InputOption::VALUE_NONE,
'Cleans up database tables or directories from previous, failed, tests and then exits (no tests are run).',
));
$inputDefinition->addOption(newInputOption(
'url',
NULL,
InputOption::VALUE_REQUIRED,
"The base URL of the root directory of this Drupal checkout; e.g.: http://drupal.test/.\nRequired unless the Drupal root directory maps exactly to: http://localhost:80/.\nUse a https:// URL to force all tests to be run under SSL.",
'http://localhost:80/',
));
$inputDefinition->addOption(newInputOption(
'sqlite',
NULL,
InputOption::VALUE_REQUIRED,
"A pathname to use for the SQLite database of the test runner. Required unless this script is executed with a working Drupal installation.\nA relative pathname is interpreted relative to the Drupal root directory.",
));
$inputDefinition->addOption(newInputOption(
'dburl',
NULL,
InputOption::VALUE_REQUIRED,
"A URI denoting the database driver, credentials, server hostname, and database name to use in tests.\nRequired when running tests without a Drupal installation that contains default database connection info in settings.php.\nExamples:\nmysql://username:password@localhost/database_name#table_prefix\nsqlite://localhost/relative/path/db.sqlite\nsqlite://localhost//absolute/path/db.sqlite",
));
$inputDefinition->addOption(newInputOption(
'php',
NULL,
InputOption::VALUE_REQUIRED,
"(deprecated) Unused.",
));
$inputDefinition->addOption(newInputOption(
'concurrency',
NULL,
InputOption::VALUE_REQUIRED,
"Run tests in parallel, up to [num] tests at a time.",
1,
));
$inputDefinition->addOption(newInputOption(
'all',
NULL,
InputOption::VALUE_NONE,
'Run all available tests.',
));
$inputDefinition->addOption(newInputOption(
'module',
NULL,
InputOption::VALUE_REQUIRED,
"Run all tests belonging to the specified module name. (e.g., 'node')",
));
$inputDefinition->addOption(newInputOption(
'class',
NULL,
InputOption::VALUE_NONE,
'Run tests identified by specific class names, instead of group names.',
));
$inputDefinition->addOption(newInputOption(
'file',
NULL,
InputOption::VALUE_NONE,
"Run tests identified by specific file names, instead of group names.\nSpecify the path and the extension (i.e. 'core/modules/user/tests/src/Functional/UserCreateTest.php').",
));
$inputDefinition->addOption(newInputOption(
'types',
NULL,
InputOption::VALUE_REQUIRED,
'Runs just tests from the specified test type, for example run-tests.sh --types "PHPUnit-Unit,PHPUnit-Kernel"',
));
$inputDefinition->addOption(newInputOption(
'directory',
NULL,
InputOption::VALUE_REQUIRED,
'Run all tests found within the specified file directory.',
));
$inputDefinition->addOption(newInputOption(
'color',
NULL,
InputOption::VALUE_NONE,
'Output text format results with color highlighting.',
));
$inputDefinition->addOption(newInputOption(
'verbose',
NULL,
InputOption::VALUE_NONE,
'Output detailed assertion messages in addition to summary.',
));
$inputDefinition->addOption(newInputOption(
'keep-results',
NULL,
InputOption::VALUE_NONE,
"Keeps detailed assertion results (in the database) after tests have completed. By default, assertion results are cleared.",
));
$inputDefinition->addOption(newInputOption(
'keep-results-table',
NULL,
InputOption::VALUE_NONE,
"Boolean flag to indicate to not cleanup the simpletest result table. For testbots or repeated execution of a single test it can be helpful to not cleanup the simpletest result table.",
));
$inputDefinition->addOption(newInputOption(
'repeat',
NULL,
InputOption::VALUE_REQUIRED,
"Number of times to repeat the test.",
1,
));
$inputDefinition->addOption(newInputOption(
'die-on-fail',
NULL,
InputOption::VALUE_NONE,
"Exit test execution immediately upon any failed assertion.\nThis allows to access the test site by changing settings.php to use the test database and configuration directories.\nUse in combination with --repeat for debugging random test failures.",
));
$inputDefinition->addOption(newInputOption(
'suppress-deprecations',
NULL,
InputOption::VALUE_NONE,
"Stops tests from failing if deprecation errors are triggered.\nIf this is not set the value specified in the SYMFONY_DEPRECATIONS_HELPER environment variable, or the value specified in core/phpunit.xml (if it exists) will be used.\nThe default is that any unexpected silenced deprecation error will fail tests.",
));
$inputDefinition->addOption(newInputOption(
'xml',
NULL,
InputOption::VALUE_REQUIRED,
"If provided, test results will be written as xml files to this path.",
));
$inputDefinition->addOption(newInputOption(
'non-html',
NULL,
InputOption::VALUE_NONE,
'Removes escaping from output. Useful for reading results on the CLI.',
));
$inputDefinition->addOption(newInputOption(
'ci-parallel-node-index',
NULL,
InputOption::VALUE_REQUIRED,
'The index of the job in the job set.',
1,
));
$inputDefinition->addOption(newInputOption(
'ci-parallel-node-total',
NULL,
InputOption::VALUE_REQUIRED,
'The total number of instances of this job running in parallel.',
1,
));
$inputDefinition->addOption(newInputOption(
'debug-discovery',
NULL,
InputOption::VALUE_NONE,
'If provided, dumps detailed information on the tests selected for execution, before the execution starts.'
));
$inputDefinition->addArgument(newInputArgument(
'tests',
InputArgument::OPTIONAL,
"One or more tests to be run.\nBy default, these are interpreted as the names of test groups which are derived from test class #[Group()] attributes.\nThese group names typically correspond to module names like \"User\" or \"Profile\" or \"System\", but there is also a group \"Database\".\nFor Contrib projects the #[Group()] attribute can be anything but usually it will start with the project machine name.\nIf --class is specified then these are interpreted as the fully qualified class names of specific test classes whose test methods will be run.\nNote that in this case the backslashes in the command line need to be escaped, see example below.\nTests must be separated by commas.\nIgnored if --all is specified.",