Update the build.xml ant script so that it is possible to run unit tests with
assertions by setting the TESTASSERT property to "true", like:
./build.sh test -DTESTASSERT=true
| | |
| | | </classpath> |
| | | </taskdef> |
| | | |
| | | <condition property="TESTASSERT" value="false"> |
| | | <not> |
| | | <isset property="TESTASSERT" /> |
| | | </not> |
| | | </condition> |
| | | |
| | | <testng outputdir="${unittest.report.dir}" haltonfailure="true" |
| | | enableAssert="false"> |
| | | enableAssert="${TESTASSERT}"> |
| | | <classpath> |
| | | <pathelement location="${coverage.instr.dir}" /> |
| | | <pathelement location="${classes.dir}" /> |