Coder Social home page Coder Social logo

thinkinglabs / the-100percent-code-coverage-fallacy Goto Github PK

View Code? Open in Web Editor NEW
16.0 3.0 3.0 126 KB

The fallacy of the 100% code coverage or once a metric becomes a target it looses it value

License: MIT License

Java 100.00%
test-coverage mutation-testing

the-100percent-code-coverage-fallacy's People

Contributors

tdpauw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

the-100percent-code-coverage-fallacy's Issues

Replace Travis CI by GitHub Actions

It seems the building has stopped on travis-ci.org since June 15th 2021.
We should replace this with GitHub Actions and find a way to have a similar build badge.

Test coverage calculation

Hello !

I have some questions on the test coverage combined with mutations.

Based on the readme :

Inside that organisation, having 30% test coverage was a big achievement, as most teams had no or very little test coverage. You can imagine the team was very proud. Until the day someone had the clever idea to run mutation tests against the code base. All of a sudden the test coverage dropped to 3%.

How the new coverage is calculated with the mutation tests ?

For example if pitest return 100% coverage on lines and 80%~ on mutations does that means that my coverage is 80% ?
Or I have to calculate the lines covered and exclude all remaining mutations to have the real coverage ?

Thanks you for your work ๐Ÿ‘

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.