Skip to content

Basic Java application with Jacoco code code coverage for Cucumber and JUnit tests

Notifications You must be signed in to change notification settings

ddsultan/cuke-jacoco

Repository files navigation

Cucumber test coverage with Jacoco on Gradle

Code coverage with Jacoco

  • After running the following Jacoco generates test.exec binary file under build/jacoco.

./gradlew build
Note

The generated .exec file required as a base for other reports e.g. HTML reports.

  • Generate Jacoco HTML report

./gradlew jacocoTestReport

Feature tests with Cucumber

  • Running the cucumber task cucumber generates summary of test results in Terminal and HTML report as well

./gradlew cucumber --info
Note

--info parameter must be passed so that Gradle shows more detailed Cucumber summary

About

Basic Java application with Jacoco code code coverage for Cucumber and JUnit tests

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published