Skip to content

Demonstrating Spring testing: (1) either unit or integration testing, (2) code quality via findbugs and (3) testcoverrage via Jacoco

Notifications You must be signed in to change notification settings

johan974/spring_unittest_or_integrationtest_findbugs_jacoco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

This simple Maven/Java project with only 1 Domain class shows the basic features for testing and code quality. The following plugins are used:

  • Surefire and Failsafe - Unit or Integration testing
  • Findbugs - Code inspector
  • Jaoco - Test coverage

Results:

  • Scenario 1:
    • mvn clean install -Pdev ==> performs the unit test
    • mvn site ==> test coverage ... of 30%
  • Scenario 2:
    • mvn clean install -Pintegration ==> performs the INTEGRATION test
    • mvn site ==> test coverage ... of 60%

Where are the Jacoco results? After testing and running 'mvn clean', you can find the results in 'target/site/jacoco/index.html'. Open this file in the browser.

About

Demonstrating Spring testing: (1) either unit or integration testing, (2) code quality via findbugs and (3) testcoverrage via Jacoco

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages