Project

General

Profile

« Previous | Next » 

Revision 8726bde3

Added by Andreas Kohlbecker over 4 years ago

ref #8771 documenting phpUnit test execution

View differences:

modules/cdm_dataportal/test/phpUnit/README.md
75 75

  
76 76
Simply right click on a test file and choose *Run 'TestFile' (PHPUnit)* in the context menu.
77 77

  
78
Running PHPUnit tests in from the commandline
79
---------------------------------------------------------------
80

  
81
navigate into the project folder and ...
82

  
83
To run the test suite:
84

  
85
~~~
86
php vendor/phpunit/phpunit/phpunit --configuration modules/cdm_dataportal/test/phpUnit/phpUnit.xml
87
~~~
88

  
89
To execute a single test class
90
~~~
91
php vendor/phpunit/phpunit/phpunit --configuration modules/cdm_dataportal/test/phpUnit/phpUnit.xml modules/cdm_dataportal/test/phpUnit/src/unit/StatisticalValuesTest.php 
92
~~~
78 93

  
79
Running PHPUnit tests via the phpunitRunner.php script (DEPRECATED)
94
Running PHPUnit integration tests via the phpunitRunner.php script (DEPRECATED)
80 95
---------------------------------------------------------------
81 96

  
82 97
*This has only been preseved since it could be useful for running test suites from the commandline or in the CI server.*

Also available in: Unified diff