Skip to content

How to Configure

Matt Glaman edited this page Jun 9, 2016 · 2 revisions

Drupal Run Tests Plugin

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.

Configure the environment settings

Configure Simpletest URL and database string

  • 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.

Use SQLite

  • 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.

Configure test runner options

Available options

  • 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.

Test groups and types

Types and group