GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — quarkus-quickstarts/tests-with-coverage-quickstart at main · JavaGreenHands/quarkus-quickstarts

Expand file tree

/

tests-with-coverage-quickstart

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

tests-with-coverage-quickstart

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
.mvn/wrapper
.mvn/wrapper
 
 
src
src
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
mvnw
mvnw
 
 
mvnw.cmd
mvnw.cmd
 
 
pom.xml
pom.xml
 
 

README.md

Outline

Measuring the coverage of your tests

Learn how to measure the test coverage of your application.

  • Measuring the coverage of your Unit Tests
  • Measuring the coverage of your Integration Tests
  • Separating the execution of your Unit Tests and Integration Tests
  • Consolidating the coverage for all your tests

Please note that code coverage is not supported in native mode.

How to run

You need:

  • JDK 11+ installed with JAVA_HOME configured appropriately
  • Apache Maven 3.5.3+

This way, the QuarkusTest instances will be executed as part of the integration-test build phase while the other JUnit tests will still be ran during the test phase.

You can all the tests via the command mvn clean verify (and you will notice that the two tests are ran at different times).

It will generate three separate reports:

  • a report of the coverage of the unit tests in target/site/jacoco-ut
  • a report of the coverage of the integration tests in target/site/jacoco-it
  • a consolidated report that will show the coverage of all your tests combined in target/site/jacoco

Learn more

For more in-depth information please see Quarkus - Measuring the coverage of your tests guide.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.