Skip to main content
removed "Drupal" and tags from the title; edited tags
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

Drupal console is missing the "test The test:run"run command is missing, but othersother commands work fine

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

Now I want to run tests with drupal test:run, but I get this error:.

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

[ERROR] Command "test:run", is not a valid command name.

drupal outputs lots and lots oflists many commands, but it is missing the test ones for tests. Here'sThis is 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
            
 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 whyWhy are the test section iscommands for tests missing?

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?

The test:run command is missing, but other commands work fine

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

Now I want to run tests with drupal test:run, but I get this error.

[ERROR] Command "test:run", is not a valid command name.

drupal lists many commands, but it is missing the ones for tests. This is 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
            

Why are the commands for tests missing?

Source Link
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?