lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doron Cohen <DOR...@il.ibm.com>
Subject Re: enabling java assertions in the tests
Date Fri, 01 Jun 2007 00:17:55 GMT
Paul Elschot <paul.elschot@xs4all.nl> wrote on 31/05/2007 16:21:09:

> > Adding:
> >      <assertions>
> >          <enable/>
> >      </assertions>
> >
> > to the <junit> task would enable assertions during tests
> > regardless of ANT_OPTS variable (and hopefully on all OSs).

> My common-build.xml has this added in the junit task:
>
>       <assertions>
>         <enable package="org.apache.lucene"/>
>       </assertions>
>

This enables the asserts for all lucene-java packages, but not
for any external jars being used. I think this is cleaner
because the no-args form would enable asserts also in external
jars and might add noise to our tests.

I'll open an issue and patch it like this!


---------------------------------------------------------------------
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