Hmm. I thought that this might have been enough, but JavaExec doesn't currently let you fork a background process (GRADLE-1254):

=============

apply plugin: 'java'

repositories {
        mavenCentral()
}

configurations {
        selenium
}

dependencies {
        testCompile 'org.seleniumhq.selenium:selenium-java:2.0rc3'
        testCompile 'junit:junit:3.8.1'
        
        selenium 'org.seleniumhq.selenium:selenium-server:2.0rc3'
}

task startSeleniumServer(type: JavaExec) {
    main = 'org.openqa.selenium.server.SeleniumServer'
    classpath = configurations.selenium
}

test.dependsOn startSeleniumServer


On Jul 4, 2011, at 9:10 AM, Tomek Kaczanowski wrote:

Ok, now I understand why you were surprised by my request. :)

apply plugin: "java"
Put your JUnit tests in src/test/java, and then "gradle test" will run them.
The rest is specifics to selenium itself.
I want to run selenium server from build.gradle and shut it down after
tests are finished. I would also like to run html selenium tests, they
are not Junit.

--
Regards / Pozdrawiam
Tomek Kaczanowski
http://kaczanowscy.pl/tomek



Cheers,
Merlyn

On Jul 4, 2011 9:00 AM, "Tomek Kaczanowski" <[email protected] >
wrote:


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

   http://xircles.codehaus.org/manage_email




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

   http://xircles.codehaus.org/manage_email


Reply via email to