You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2015/05/29 23:02:38 UTC
svn commit: r1682550 - /lucene/dev/trunk/lucene/common-build.xml
Author: sarowe
Date: Fri May 29 21:02:38 2015
New Revision: 1682550
URL: http://svn.apache.org/r1682550
Log:
LUCENE-5283: Introduce new build property tests.ifNoTests - when its value is 'ignore', 'ant test' will succeed even when zero tests were executed.
Modified:
lucene/dev/trunk/lucene/common-build.xml
Modified: lucene/dev/trunk/lucene/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/common-build.xml?rev=1682550&r1=1682549&r2=1682550&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/common-build.xml (original)
+++ lucene/dev/trunk/lucene/common-build.xml Fri May 29 21:02:38 2015
@@ -1337,6 +1337,9 @@ ant -Dsolr.test.leavetmpdir=true
# Do *not* filter stack traces emitted to the console.
ant -Dtests.filterstacks=false
+# Skip checking for no-executed tests in modules
+ant -Dtests.ifNoTests=ignore ...
+
# Output test files and reports.
${tests-output}/tests-report.txt - full ASCII tests report
${tests-output}/tests-failures.txt - failures only (if any)
@@ -1490,7 +1493,7 @@ ${tests-output}/junit4-*.suites - pe
});
statsFile.delete();
- if (total == 0) {
+ if (total == 0 && !"ignore".equals(project.getProperty("tests.ifNoTests"))) {
throw new BuildException("Not even a single test was executed (a typo in the filter pattern maybe?).");
}