Does anyone know how to pass gradle properties to unit test and override them on command line?
You will probably need to pass it through Gradle as a system property, i.e. -Dkey=value
. Alternatively, your Gradle script could set a system property, e.g. System.properties.'my.property' = ?
. A JUnit test will have no access to Gradle properties.