Coder Social home page Coder Social logo

tests-with-coverage-quickstart's Introduction

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 1.8+ 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.

tests-with-coverage-quickstart's People

Contributors

sebitit avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.