Skip to main content
1 of 2
naomi
  • 1.3k
  • 13
  • 28

Drupal console is missing the "test:run" command but others work fine

I installed Drupal Console, put it on my path, did drupal init, and successfully used it to generate a module.

Now I want to run tests, but I get this error:

dev@caiccrm:~/drupal/web$ drupal test:run
                                                                                                                        
 [ERROR] Command "test:run", is not a valid command name. 

drupal outputs lots and lots of commands, but it is missing the test ones. Here's a sample of the list:

 state
  state:delete (std)                      Delete State
  state:override (sto)                    Override a State key.
 taxonomy
  taxonomy:term:delete (ttd)              Delete taxonomy terms from a vocabulary
 theme
  theme:download (thd)                    Download theme in application
  theme:install (thi)                     Install theme or themes in the application
  theme:path (thp)                        Returns the relative path to the theme (or absolute path)
  theme:uninstall (thu)                   Uninstall theme or themes in the application
 update
  update:entities (upe)                   Applying Entity Updates
  update:execute (upex,updb)              Execute a specific Update N function in a module, or execute all
 user
  user:create (uc)                        Create users for the application
  user:delete (ud)                        Delete users from the application
            

Any ideas why the test section is missing?

naomi
  • 1.3k
  • 13
  • 28