[
https://issues.apache.org/jira/browse/LUCENE-5283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dawid Weiss updated LUCENE-5283:
--------------------------------
Attachment: LUCENE-5283.patch
A patch that adds tests.ifNoTests property. Override your defaults to:
tests.ifNoTests=fail
and then no-test runs will fail as in:
{code}
cd lucene
ant test-core -Dtestcase=TestPayloadsOnVector -Dtests.ifNoTests=fail
{code}
results in:
{code}
...
test:
[junit4] <JUnit4> says ??????! Master seed: 2BD9E59CF4296F85
[junit4] Your default console's encoding may not display certain unicode
glyphs: windows-1252
[junit4] Tests summary: 0 suites, 0 tests
BUILD FAILED
c:\Work\lucene\trunk\lucene\build.xml:49: The following error occurred while
executing this line:
c:\Work\lucene\trunk\lucene\common-build.xml:1262: The following error occurred
while executing this line:
c:\Work\lucene\trunk\lucene\common-build.xml:905: There were no executed tests:
0 suites, 0 tests
{code}
> 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, 5.0
>
> Attachments: LUCENE-5283.patch
>
>
> This should be an optional setting that defaults to 'false' (the build
> proceeds).
--
This message was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]