Skip to content

Integrate a Java project with Jenkins, and calculate your code coverage

Notifications You must be signed in to change notification settings

nickhung13/java-junit-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java-junit-sample

It's a simple calculator project to demo how to use junit4. And you also can use it to generate test report and code coverage report.

Usage

  • Open command line
  • Check the gradle tasks
    $ ./gradlew -q tasks
  • Run your test and generate test code coverage report
    • Support Chrome and Firefox
  • Run specific test case
    $ ./gradlew clean test jacocoTestReport
  • Report(Xml and Html) will be generated on build folder

Integrate with Jenkins

  • Install essential plugin to publish report
    • Gradle plugin
    • HTML Publisher plugin
    • Jacoco plugin
    • JUnit plugin

About

Integrate a Java project with Jenkins, and calculate your code coverage

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages