summaryrefslogtreecommitdiffstats
path: root/junit4/doc/ReleaseNotes4.8.txt
diff options
context:
space:
mode:
Diffstat (limited to 'junit4/doc/ReleaseNotes4.8.txt')
-rw-r--r--junit4/doc/ReleaseNotes4.8.txt56
1 files changed, 56 insertions, 0 deletions
diff --git a/junit4/doc/ReleaseNotes4.8.txt b/junit4/doc/ReleaseNotes4.8.txt
new file mode 100644
index 0000000..4a30db6
--- /dev/null
+++ b/junit4/doc/ReleaseNotes4.8.txt
@@ -0,0 +1,56 @@
+## Summary of Changes in version 4.8 ##
+
+### Categories ###
+
+From a given set of test classes, the `Categories` runner
+runs only the classes and methods
+that are annotated with either the category given with the `@IncludeCategory`
+annotation, or a subtype of that category. Either classes or interfaces can be
+used as categories. Subtyping works, so if you say `@IncludeCategory(SuperClass.class)`,
+a test marked `@Category({SubClass.class})` will be run.
+
+You can also exclude categories by using the `@ExcludeCategory` annotation
+
+Example:
+
+ public interface FastTests { /* category marker */ }
+ public interface SlowTests { /* category marker */ }
+
+ public class A {
+ @Test
+ public void a() {
+ fail();
+ }
+
+ @Category(SlowTests.class)
+ @Test
+ public void b() {
+ }
+ }
+
+ @Category({SlowTests.class, FastTests.class})
+ public class B {
+ @Test
+ public void c() {
+
+ }
+ }
+
+ @RunWith(Categories.class)
+ @IncludeCategory(SlowTests.class)
+ @SuiteClasses( { A.class, B.class }) // Note that Categories is a kind of Suite
+ public class SlowTestSuite {
+ // Will run A.b and B.c, but not A.a
+ }
+
+ @RunWith(Categories.class)
+ @IncludeCategory(SlowTests.class)
+ @ExcludeCategory(FastTests.class)
+ @SuiteClasses( { A.class, B.class }) // Note that Categories is a kind of Suite
+ public class SlowTestSuite {
+ // Will run A.b, but not A.a or B.c
+ }
+
+### Bug fixes ###
+
+- github#16: thread safety of Result counting \ No newline at end of file