Hi, 

How do you set the forkmode to once for junit tests?  

In the user guide (chapter 18) it states "Per default the tests are run in a
forked JVM and the fork is done per test. You can modify this behavior by
setting forking to false or set the forkmode to once."

I couldn't see any examples of how to do this, apart from the Java
quickstart chapter which shows how to add a system property:

test {
    options.systemProperties['property'] = 'value'
}

so I had a try and added the following:

test {
    options.systemProperties['forkmode'] = 'once'
}

However when I run the build I get the following error:

* What went wrong:
A problem occurred evaluating root project 'uwm'.
Cause: No such property: systemProperties for class:
org.gradle.api.tasks.testing.junit.JUnitOptions

Can anyone advise?  I'm struggling to find examples in the documentation.

-- 
View this message in context: 
http://gradle.1045684.n5.nabble.com/How-do-you-set-Junit-forkmode-to-once-tp3203096p3203096.html
Sent from the gradle-user mailing list archive at Nabble.com.

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

    http://xircles.codehaus.org/manage_email


Reply via email to