java - gradle ignoreFailures test property -
my build.gradle file following :
apply plugin: "java" ... test { ... ignorefailures = "$ignorefailureprop" } and gradle.properties with
ignorefailureprop=false when executed gradle clean build, unit test failures not mark build failed.
i know default behaviour fail build, want explicitly set through property, change in without modifying build file
the problem ignorefailureprop property string ignorefailures (which should boolean) set string , therefore true.
you instead:
apply plugin: "java" test { ignorefailures = ignorefailureprop.toboolean() } this should work.
Comments
Post a Comment