I want to disable assertions for java tests. For this i used the following build.gradle snippet:
test {
enableAssertions = false
ignoreFailures = true
}
The
ignoreFailures
statement works fine, but the
enableAssertions
statement not. Assertions are always enabled.
Versions: ------------------------------------------------------------ Gradle 1.0-rc-2 ------------------------------------------------------------
Gradle build time: Tuesday, April 24, 2012 11:52:37 PM UTC Groovy: 1.8.6 Ant: Apache Ant™ version 1.8.2 compiled on December 20 2010 Ivy: 2.2.0 JVM: 1.6.0_31 (Sun Microsystems Inc. 20.6-b01) OS: Linux 3.1.6-gentoo-BR01 amd64