Skip to content

Gradle build fixture for web application development using tomcat and selenium

Notifications You must be signed in to change notification settings

marcellodesales/gradle-rest-assured-selenium-jacoco

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gradle-rest-assured-selenium-jacoco

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.

Features

  • integration test setup (source folders, dependencies etc.)
  • configured Tomcat Plugin
  • JaCoCo code coverage. NOT WORKING WHEN RUNNING WITH TOMCAT.

Requirements

Gradle 1.0+ (wrapper is included)

Usage

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

About

Gradle build fixture for web application development using tomcat and selenium

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 84.4%
  • Groovy 9.8%
  • Shell 3.9%
  • Java 1.9%