Jody Garnett ha scritto:
> Bleah ... this is the problem:
> a) do we get asserts to work (scope creep like this is why nothing gets
> fixed in GeoTools)
> b) do we roll our own imitation of assert (the unsupported/geometry
> module has an Assert class that we could rip out as a transition measure)
>
> I am inclined to go with counting the number of asserts in GeoTools and
> seeing how bad the problem *is* ... the fact that an assertion is
> violated in a test case should tell us something. Perhaps something more
> important then closing a transaction.
>
> Could you let me know how to turn on asserts in maven 2? I can scope out
> the size of the problem next build. Then we can make an informed decision.
They are already on:
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/*Test.java</include>
</includes>
<excludes>
<exclude>${online.skip.pattern}</exclude>
<exclude>${stress.skip.pattern}</exclude>
</excludes>
<forkMode>once</forkMode>
<argLine>-Xmx512M -enableassertions
-Dorg.geotools.test.extensive=${extensive.tests}
-Dorg.geotools.test.interactive=${interactive.tests}</argLine>
<!-- Ignores test failure only if we are generating a -->
<!-- report for publication on the web site. See the -->
<!-- profiles section at the begining of this pom.xml file. -->
<testFailureIgnore>
${allow.test.failure.ignore}
</testFailureIgnore>
</configuration>
</plugin>
See that -enableassertions?
Cheers
Andrea
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel