You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Steve Rowe (JIRA)" <ji...@apache.org> on 2015/05/29 18:50:17 UTC

[jira] [Commented] (LUCENE-5283) Fail the build if ant test didn't execute any tests (everything filtered out).

    [ https://issues.apache.org/jira/browse/LUCENE-5283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14565049#comment-14565049 ] 

Steve Rowe commented on LUCENE-5283:
------------------------------------

This feature caused a build "failure" for me when dataimporthandler-extras had all its tests skipped or ignored, when run as part of {{ant test-contrib}} from {{solr/}}: 

{noformat}
-init-totals:

-test:

    [mkdir] Created dir: /var/lib/jenkins/jobs/Lucene-Solr-tests-5.2-Java8/workspace/solr/build/contrib/solr-dataimporthandler-extras/test
    [mkdir] Created dir: /var/lib/jenkins/jobs/Lucene-Solr-tests-5.2-Java8/workspace/solr/build/contrib/solr-dataimporthandler-extras/test/temp
    [mkdir] Created dir: /var/lib/jenkins/jobs/Lucene-Solr-tests-5.2-Java8/workspace/.caches/test-stats/solr-dataimporthandler-extras
   [junit4] <JUnit4> says hi! Master seed: 2085E7C0234F42B1
   [junit4] Executing 2 suites with 2 JVMs.
   [junit4] 
   [junit4] Started J0 PID(7435@goose).
   [junit4] Started J1 PID(7498@goose).
   [junit4] Suite: org.apache.solr.handler.dataimport.TestMailEntityProcessor
   [junit4] Completed [1/2] on J1 in 0.47s, 6 tests, 6 skipped
   [junit4] 
   [junit4] Suite: org.apache.solr.handler.dataimport.TestTikaEntityProcessor
   [junit4] Completed [2/2] on J0 in 2.02s, 9 tests, 9 skipped
   [junit4] 
   [junit4] JVM J0:     0.84 ..     3.80 =     2.96s
   [junit4] JVM J1:     1.08 ..     2.82 =     1.74s
   [junit4] Execution time total: 3.87 sec.
   [junit4] Tests summary: 2 suites, 15 tests, 15 ignored
     [echo] 5 slowest tests:
[junit4:tophints]   2.02s | org.apache.solr.handler.dataimport.TestTikaEntityProcessor
[junit4:tophints]   0.47s | org.apache.solr.handler.dataimport.TestMailEntityProcessor

-check-totals:

BUILD FAILED
/var/lib/jenkins/jobs/Lucene-Solr-tests-5.2-Java8/workspace/solr/build.xml:249: The following error occurred while executing this line:
/var/lib/jenkins/jobs/Lucene-Solr-tests-5.2-Java8/workspace/solr/common-build.xml:454: The following error occurred while executing this line:
/var/lib/jenkins/jobs/Lucene-Solr-tests-5.2-Java8/workspace/solr/common-build.xml:511: The following error occurred while executing this line:
/var/lib/jenkins/jobs/Lucene-Solr-tests-5.2-Java8/workspace/lucene/common-build.xml:1501: Not even a single test was executed (a typo in the filter pattern maybe?).
Total time: 5 minutes 12 seconds
{noformat}
 
Looks like {{-Dtests.ifNoTests=ignore}} didn't make it into the final implementation.  I thought using {{-Dtests.totals.toplevel=false}} might work, but still fails for me when I purposely test a non-existent testcase.

Is there some way to not fail when no tests run in a module?

> Fail the build if ant test didn't execute any tests (everything filtered out).
> ------------------------------------------------------------------------------
>
>                 Key: LUCENE-5283
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5283
>             Project: Lucene - Core
>          Issue Type: Wish
>            Reporter: Dawid Weiss
>            Assignee: Dawid Weiss
>            Priority: Trivial
>             Fix For: 4.6, Trunk
>
>         Attachments: LUCENE-5283-permgen.patch, LUCENE-5283.patch, LUCENE-5283.patch, LUCENE-5283.patch
>
>
> This should be an optional setting that defaults to 'false' (the build proceeds).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org