Skip to content

Instantly share code, notes, and snippets.

@cristiroma
Last active September 5, 2017 14:44
Show Gist options
  • Save cristiroma/df7f3b201c50a58d2eb9791fce17b9f5 to your computer and use it in GitHub Desktop.
Save cristiroma/df7f3b201c50a58d2eb9791fce17b9f5 to your computer and use it in GitHub Desktop.
Running Drupal 8 functional tests
List tests classes by group
php core/scripts/run-tests.sh --list
Normal run of a single class
php core/scripts/run-tests.sh --non-html --color --verbose --url http://site.local --class "Drupal\Tests\my_module\Functional\ClassTest"
Debug a single class (leave results)
php core/scripts/run-tests.sh --die-on-fail --keep-results-table --keep-results --non-html --color --verbose --url http://site.local --class "Drupal\Tests\my_module\Functional\ClassTest"
Useful options:
--keep-results-table - Do not cleanup database tables after testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment