JPHPUnit Tutorial

After you have installed the jPHPUnit module. You have a file in the "scripts" directory named "jphpunit" that you will run. All following command line samples are run from the root of your jelix application.

Get help

scripts/jphpunit help

You will get some explanation about how to use jPHPUnit.

List the available tests

scripts/jphpunit -v

You will get a list jelix selectors for each module of your application containing tests. These selectors are used to run the corresponding tests.

Run a test

scripts/jphpunit <<test selector>>

You will the test case corresponding to the selector.

Run all the test of a module

scripts/jphpunit <<module name>>

You will run all the tests in the specified module.

Run all the tests of the application

Not available yet

Attachments

Download in other formats: Plain Text