-.PHONY: help test phpunit install coverage warning destructive
+.PHONY: help test phpunit install coverage warning destructive parser noparser list-groups
+.DEFAULT: warning
SHELL = /bin/sh
CONFIG_FILE = $(shell pwd)/suite.xml
all test: warning
warning:
+ # Use 'make help' to get usage
@echo "WARNING -- these tests are DESTRUCTIVE and will alter your wiki."
@echo "DO NOT RUN THESE TESTS on a production wiki."
@echo ""
coverage:
${PU} --coverage-html ../../../docs/code-coverage
+parser:
+ ${PU} --group Parser
+
+noparser:
+ ${PU} --exclude-group Parser
+
+list-groups:
+ ${PU} --list-groups
+
help:
# Usage:
# make <target> [OPTION=value]
# help You're looking at it!
# coverage Run the tests and generates an HTML code coverage report
# You will need the Xdebug PHP extension for the later.
+ # [no]parser Skip or only run Parser tests
+ #
+ # list-groups List availabe Tests groups.
+ #
# Options:
# CONFIG_FILE Path to a PHPUnit configuration file (default: suite.xml)
# FLAGS Additional flags to pass to PHPUnit
$tester->count = 0;
foreach ( $iter as $test ) {
- $tester->suite->addTest( new ParserUnitTest( $tester, $test ) );
+ $tester->suite->addTest( new ParserUnitTest( $tester, $test ), array( 'Parser' ) );
$tester->count++;
}