Skip to content

FameHelsinki/ddev-phpunit-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DDEV PHPUnit Demo

What is inside of this fork

How to use

  • Install DDEV
  • ddev start
  • Replace MODULE_NAME on following with name of your contrib module.
  • ddev composer require drupal/MODULE_NAME
  • ddev composer drupal-contrib:switch-clone MODULE_NAME
  • ddev phpunit -v web/modules/contrib/MODULE_NAME
  • ddev phpunit --group MODULE_NAME

Original readmd

See Running and debugging PHPUnit tests in PHPStorm with DDev and xdebug for a video demo covering configuration for running and debugging:

  • Unit tests
  • Kernel tests
  • Functional tests
  • FunctionalJavascript tests
  • Drupal Test Traits (ExistingSiteSelenium2DriverTest)

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%