How can I add a Java system property during JUnit Test Execution
Sorry to answer my own question. Just stumbled upon the solution here:
test { systemProperties = System.properties }
You can also define individual properties like this:
test {
systemProperty "file", "test.story"
}
(From this answer)