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.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1386827 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dawid Weiss 2012-09-17 20:46:10 +00:00
parent 5399379a34
commit 494fc95813
1 changed files with 7 additions and 5 deletions

View File

@ -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 {}
/**