I need to define a system property for my JUnit tests. I tried various steps to pass a name / value pair in gradle. (I tried Milestone-3 and 4). None of these approaches worked:
- systemProp.foo = line definition in gradle.properties file
- pass -Dfoo = bar on the command line
- pass -PsystemProp.foo = bar on the command line
I do not see the additional properties from the gradle properties, although I'm not sure what I should. But more importantly, I dropped System.properties in the static initializer, but the property is not there. I need to pass System properties to current tests to tell them which environment they are working in (local, Jenkins, etc.).
source share