drupal-7simpletestdrush

How to remove Drupal Simpletest tables?


When I run my tests:

drush test-run

... and it finishes, I'm left with tons of tables in my database. Things like:

simpletest69123cache_menu

I know it creates these to run the tests, but when its done, how do I get rid of them?

UPDATE

Bonus question: Does setup run for each individual test? i.e. do modules and everything get enabled every time for each test? (this takes forever and I can't imagine this is how everyone uses the testing with Drupal)


Solution

  • use the below command

    drush test-clean

    Here is all command lists for Drush

    You will be able to run the individual test. Example comamnd

    drush test-run --methods

    Here is the list for available test.