8/23/2023 0 Comments Phpunit api![]() -no-results: Disable output of test results.-no-progress: Disable output of test execution progress.-stderr: Write to STDERR instead of STDOUT.-columns max: Use maximum number of columns for progress output.-columns : Number of columns to use for progress output.-colors : Use colors in output ("never", "auto" or "always").-random-order-seed : Use the specified random seed when running tests in random order.-order-by : Run tests in order: default|defects|depends|duration|no-depends|random|reverse|size.-do-not-cache-result: Do not write test results to cache file.-cache-result: Write test results to cache file.-fail-on-warning: Treat tests with warnings as failures.-fail-on-skipped: Treat skipped tests as failures.-fail-on-risky: Treat risky tests as failures.-fail-on-incomplete: Treat incomplete tests as failures.-stop-on-incomplete: Stop execution upon first incomplete test.-stop-on-skipped: Stop execution upon first skipped test.-stop-on-risky: Stop execution upon first risky test.-stop-on-warning: Stop execution upon first warning.-stop-on-failure: Stop execution upon first error or failure.-stop-on-error: Stop execution upon first error.-stop-on-defect: Stop execution upon first not-passed test.-dont-report-useless-tests: Do not report tests that do not test anything.-default-time-limit : Timeout in seconds for tests that have no declared size. ![]() ![]() -enforce-time-limit: Enforce time limit based on test size.-disallow-test-output: Be strict about output during tests.-strict-global-state: Be strict about changes to global state.-strict-coverage: Be strict about code coverage metadata.-static-backup: Backup and restore static properties for each test.-globals-backup: Backup and restore $GLOBALS for each test.-test-suffix : Only search for test in files with specified suffix(es).-list-tests-xml : List available tests in XML format.-uses : Only run tests that intend to use.-covers : Only run tests that intend to cover.-exclude-group : Exclude tests from the specified group(s).-group : Only run tests from the specified group(s).-list-groups: List available test groups.-exclude-testsuite : Exclude tests from the specified test suite(s).-retry: Run non-passing tests first and stop execution upon first error or failure.-todos: Output to standard output the list of todos.-bail: Stop execution upon first not-passed test.-test-directory: Specify test directory containing Pest.php, TestCase.php, helpers and your tests.-migrate-configuration: Migrate configuration file to current format.-generate-configuration: Generate configuration file with suggested settings.-cache-directory : Specify cache directory.-include-path : Prepend PHP's include_path with given path(s).-no-extensions: Do not load PHPUnit extensions.-no-configuration: Ignore default configuration file (phpunit.xml).-c|-configuration : Read configuration from XML file.-init: Initialize a standard Pest configuration.The complete CLI API Reference is provided below for your convenience. Nevertheless, Pest provides many other options that could prove beneficial. In the preceding chapters of the Pest documentation, we have covered numerous CLI options that are available in Pest.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |