This project provides a Gradle build file with a basic setup to start developing web applications for Tomcat leveraging FluentLenium, to write and execute Selenium Tests in addition to REST-ASSURED tests.
This was based on https://github.com/moritzzimmer/gradle-selenium-fixture.
- integration test setup (source folders, dependencies etc.)
- configured Tomcat Plugin
- JaCoCo code coverage. NOT WORKING WHEN RUNNING WITH TOMCAT.
Gradle 1.0+ (wrapper is included)
To run the integration tests and generate the Jacoco reports (Still 0% bug), execute the following task:
gradle integrationTest jacocoReport
This will start an embedded tomcat server, execute all integration tests and shutdown the server:
integrationTest.doFirst {
println 'Starting the embedded tomcat server'
tasks.tomcatRun.daemon = true
tasks.tomcatRun.execute()
}
integrationTest.doLast {
println 'Stopping the embedded tomcat server'
tasks.tomcatStop.execute()
}
The 'integrationTest' task has a dependency to 'check' so you can also execute:
gradle check