qa:runtests:howtorun
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
qa:runtests:howtorun [2012/05/22 07:59] – [phpruntests on Windows] zoe | qa:runtests:howtorun [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 26: | Line 26: | ||
===== Run the code ===== | ===== Run the code ===== | ||
- | At the moment the code will run a single test, eg: | + | Run a single test, eg: |
< | < | ||
| | ||
</ | </ | ||
- | All the tests under a given directory, eg: | + | Run all the tests under a given directory, eg: |
< | < | ||
runtests ext/ | runtests ext/ | ||
Line 37: | Line 37: | ||
The output format is different to run-tests.php. If a single test is run a short summary is printed to stdout. If one or more directories of tests are run the output is printed after each group (directory) of tests has been run. Again, a summary is printed to stdout but details are written to a file. | The output format is different to run-tests.php. If a single test is run a short summary is printed to stdout. If one or more directories of tests are run the output is printed after each group (directory) of tests has been run. Again, a summary is printed to stdout but details are written to a file. | ||
+ | |||
+ | Run all the tests under path_to_php/ | ||
+ | |||
+ | < | ||
+ | runtests path_to_php/ | ||
+ | </ | ||
+ | |||
+ | Generate XML formatted output to a file: | ||
+ | |||
+ | < | ||
+ | runtests -o xml -s / | ||
+ | </ | ||
+ | |||
+ | Get more verbose results to the screen: | ||
+ | < | ||
+ | runtests -vvv path_to_php/ | ||
+ | </ | ||
+ | |||
+ | Note: there are three levels of verbosity, -v, -vv and -vvv. But default all you will see is a ' | ||
+ | |||
< | < | ||
Line 43: | Line 63: | ||
will give you all of the possible command line options. | will give you all of the possible command line options. | ||
- | |||
qa/runtests/howtorun.1337673546.txt.gz · Last modified: 2017/09/22 13:28 (external edit)