-
Notifications
You must be signed in to change notification settings - Fork 2
How to Configure
Matt Glaman edited this page Jun 9, 2016
·
2 revisions
With Drupal Test Runner, a new run configuration is added to PhpStorm specifically for Drupal's test running script run-tests.sh. This allows you to run Simpletest, Unit, Kernel, Functional, and FunctionalJavascript tests with one single runner.
- Simpletest URL The base URL of the root directory of this Drupal checkout. Use a https:// URL to force all tests to be run under SSL.
- Simpletest DB A URI denoting the database driver, credentials, server hostname, and database name to use in tests. Required when running tests without a Drupal installation.
- SQLite Run tests using an SQLite database instead of MySQL or other
- SQLite path A pathname to use for the SQLite database of the test runner.
- Concurrency Run tests in parallel, up to # tests at a time.
- Repeat Number of times to repeat the test.
- Verbose output Output detailed assertion messages in addition to the summary.
- Color output Output text format results with color highlighting.
- Abort test on fail and keep database and files Exit test execution immediately upon any failed assertion. Allows loading test environment database and halts any test environment cleanup.
- Group Specifies what type of tests to run. All, a test group, module, directory, or specific class.
- Test types There are different test types. Ideally you would run Unit, Kernel, Functional and FunctionalJavascript tests using PHPUnit. (Example https://gist.github.com/mglaman/f0cbe19a2fae4fb7f685c25606ab60ea)