KentBeck/junit — pull request #346 by swapsapar (2011-10-20 21:09:07+00:00)
Title: Fix for #345 with a new TestCase

https://github.com/KentBeck/junit/issues/345

The above requested feature is added with these commits. Now we can execute the (a dynamic set of) tests using the tags.

1. Create a new testcase with tests tagged with different keywords e.g. production, quality, integration etc
2. Lauch JUnit with a new VM param e.g.
$ java -Dorg.junit.runtags="quality" -cp target/main:target/test/java:lib/hamcrest-core-1.1.jar org.junit.runner.JUnitCore org.junit.tags.TaggedTest
JUnit version 4.11-SNAPSHOT
.I..II
Time: 0.008

OK (3 tests)

3. All the tests annotated with @RunTags are executed only if the tag passed via VM parameter matches.

Added a new testcase TagCheckTest to validate the new functionality.

This is the first time I'm trying to contribute to an open source project. Also my first time with git and github. Please feel free to comment, correct, suggest or provide feedback of any type.