Skip to content

Measurement code coverage of java app by external manual or automated tests

Notifications You must be signed in to change notification settings

tkachoff/coverage-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Example of measure code coverage of java app by external manual or automated tests

##Application is simple calculator web-service

###Endpoints

##How to measure ###1. Build project in debug mode

bash gradlew clean build -DDEBUG=true

###2. Run java application with attached agent

java -javaagent:build/libs/jacocoagent.jar=destfile=build/jacoco/jacoco.exec,append=false -jar build/libs/coverage-metrics-1.0.jar

###3. Execute some endpoints just opening urls in browser

###4. Stop application

###5. Run gradle task to build report

bash gradlew jacocoTestReport

###6. See report in build/reports/jcc/html/index.html

About

Measurement code coverage of java app by external manual or automated tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages