Index: trunk/phase3/maintenance/tests/phpunit/includes/parser/MediaWikiParserTest.php |
— | — | @@ -24,7 +24,7 @@ |
25 | 25 | $tester->count = 0; |
26 | 26 | |
27 | 27 | foreach ( $iter as $test ) { |
28 | | - $tester->suite->addTest( new ParserUnitTest( $tester, $test ) ); |
| 28 | + $tester->suite->addTest( new ParserUnitTest( $tester, $test ), array( 'Parser' ) ); |
29 | 29 | $tester->count++; |
30 | 30 | } |
31 | 31 | |
Index: trunk/phase3/maintenance/tests/phpunit/Makefile |
— | — | @@ -1,4 +1,5 @@ |
2 | | -.PHONY: help test phpunit install coverage warning destructive |
| 2 | +.PHONY: help test phpunit install coverage warning destructive parser noparser list-groups |
| 3 | +.DEFAULT: warning |
3 | 4 | |
4 | 5 | SHELL = /bin/sh |
5 | 6 | CONFIG_FILE = $(shell pwd)/suite.xml |
— | — | @@ -8,6 +9,7 @@ |
9 | 10 | all test: warning |
10 | 11 | |
11 | 12 | warning: |
| 13 | + # Use 'make help' to get usage |
12 | 14 | @echo "WARNING -- these tests are DESTRUCTIVE and will alter your wiki." |
13 | 15 | @echo "DO NOT RUN THESE TESTS on a production wiki." |
14 | 16 | @echo "" |
— | — | @@ -32,6 +34,15 @@ |
33 | 35 | coverage: |
34 | 36 | ${PU} --coverage-html ../../../docs/code-coverage |
35 | 37 | |
| 38 | +parser: |
| 39 | + ${PU} --group Parser |
| 40 | + |
| 41 | +noparser: |
| 42 | + ${PU} --exclude-group Parser |
| 43 | + |
| 44 | +list-groups: |
| 45 | + ${PU} --list-groups |
| 46 | + |
36 | 47 | help: |
37 | 48 | # Usage: |
38 | 49 | # make <target> [OPTION=value] |
— | — | @@ -43,6 +54,10 @@ |
44 | 55 | # help You're looking at it! |
45 | 56 | # coverage Run the tests and generates an HTML code coverage report |
46 | 57 | # You will need the Xdebug PHP extension for the later. |
| 58 | + # [no]parser Skip or only run Parser tests |
| 59 | + # |
| 60 | + # list-groups List availabe Tests groups. |
| 61 | + # |
47 | 62 | # Options: |
48 | 63 | # CONFIG_FILE Path to a PHPUnit configuration file (default: suite.xml) |
49 | 64 | # FLAGS Additional flags to pass to PHPUnit |