Russel Winder wrote:
Sorry if this is RTFM . . .

How can I set a property in the JVM of a forked unit test JVM?

Ant has the sysproperty task as part of the junit task which does the
needful, so the goal is easy in Gant and Ant.  I am guessing it is easy
in Gradle as well but . . .


There's an example in the java quickstart chapter:

http://gradle.org/0.8/docs/userguide/tutorial_java_projects.html#N10420

Not the most obvious place to find it, I know. Perhaps a tutorial chapter on testing would be good. And certainly a task reference with the options listed would be useful.

BTW The user guide needs an example of setting test forkmode to once,
the text says what has to be done but not how to do it.  cf. Section
18.11, page 103.  The Gradle build appears to have a single instance of
the string forkmode, and it is not enlightening.

Forkmode is once by default.

--
Adam Murdoch
Gradle Developer
http://www.gradle.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to