Skip to content

Apache Lucene open-source search software

SOLR-3766: made @BadApples annotation disabled by default (no tests are currently marked as @BadApples). Created a plan on Jenkins for running these called Lucene-BadApples-trunk-java7.

Dawid Weiss494fc95813d5
diff --git a/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
index 97f719cbc5d..97b4f601942 100644
--- a/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
+++ b/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
@@ -188,17 +188,19 @@ public abstract class LuceneTestCase extends Assert {
public @interface Slow {}
/**
- * Annotation for tests that fail frequently. You can disable them
- * if you want to run a long build and not stop on something that
- * is a known problem.
+ * Annotation for tests that fail frequently and should
+ * be moved to a <a href="https://builds.apache.org/job/Lucene-BadApples-trunk-java7/">"vault" plan in Jenkins</a>.
+ *
+ * Tests annotated with this will be turned off by default. If you want to enable
+ * them, set:
* <pre>
- * -Dtests.badapples=false
+ * -Dtests.badapples=true
* </pre>
*/
@Documented
@Inherited
@Retention(RetentionPolicy.RUNTIME)
- @TestGroup(enabled = true, sysProperty = SYSPROP_BADAPPLES)
+ @TestGroup(enabled = false, sysProperty = SYSPROP_BADAPPLES)
public @interface BadApple {}
/**