lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shai Erera (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-1617) Add "testpackage" to common-build.xml
Date Mon, 27 Apr 2009 15:24:30 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-1617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shai Erera updated LUCENE-1617:
-------------------------------

    Attachment: LUCENE-1617.patch

Added another property "testpackageroot". So now you can define:
* testcase - for a single test class
* testpackage - for all classes in a package, including sub-packages
* testpackageroot - for all classes in a package, without sub-packages

But something is strange ... if I run "ant test-core" it works ok. If I run "ant test-core
-Dtestpackage=lucene" few classes fail, like AnalysisTest, IndexTest etc. (those that end
with Test). That's because they are not TestCases ... I wonder why in "ant test-core" those
files are skipped (and I see they are not executed) but in testpackage they are not.

Anyway, I'll look into it later, unless someone who is more knowledgeable in Ant want to look
at it.

This is not ready to be committed, as "ant test-core -Dtestpackage=lucene" and "ant test-core
-Dtestpackageroot=lucene" fail on those non-test cases files.

> Add "testpackage" to common-build.xml
> -------------------------------------
>
>                 Key: LUCENE-1617
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1617
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Build
>            Reporter: Shai Erera
>            Priority: Minor
>             Fix For: 2.9
>
>         Attachments: LUCENE-1617.patch, LUCENE-1617.patch
>
>
> One can define "testcase" to execute just one test class, which is convenient. However,
I didn't notice any equivalent for testing a whole package. I find it convenient to be able
to test packages rather than test cases because often it is not so clear which test class
to run.
> Following patch allows one to "ant test -Dtestpackage=search" (for example) and run all
tests under the \*/search/\* packages in core, contrib and tags, or do "ant test-core -Dtestpackage=search"
and execute similarly just for core, or do "ant test-core -Dtestpacakge=lucene/search/function"
and run all the tests under \*/lucene/search/function/\* (just in case there is another o.a.l.something.search.function
package out there which we want to exclude.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message