Added more fine grained groups for parser tests
authorDaniel Werner <daniel.werner@wikimedia.de>
Sat, 20 Apr 2013 20:28:38 +0000 (22:28 +0200)
committerDaniel Werner <daniel.werner@wikimedia.de>
Sat, 20 Apr 2013 20:42:36 +0000 (20:42 +0000)
* Group "ParserTests" which allows to run all parser tests in PHPUnit without running other tests
  related to the MediaWiki parser from group "Parser"
* Dynamically generated groups to only run certain parser tests. All of those groups are the parser
  test file names ("." and "_" replaced) prefixed with "ParserTests_". This allows to easily run
  the parser tests of a certain extension separately without using "parserTests.txt".

Change-Id: I03b87820c2968cf16eba2ac39cd8444a0e4dc41a

tests/phpunit/includes/parser/MediaWikiParserTest.php

index c5c7cf2..abc2f61 100644 (file)
@@ -28,6 +28,8 @@ class MediaWikiParserTest {
 /**
  * @group Database
  * @group Parser
+ * @group ParserTests
+ * @group ParserTests_$parserTestClassName
  */
 class $parserTestClassName extends NewParserTest {
        protected \$file = '$escapedFileName';