qunabu / What-100-Code-Coverage-will-not-tell-you

TypeScript. Theory and examples. What 100% Code Coverage will not tell you

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What 100% Code Coverage will not tell you

This package contains a dummy express REST API application that has 100% Code Coverage.

Purpose of this repository is to show that this metric can be misleading in various ways

Install dependencies with yarn or npm i or any other way.

Run jest tests with yarn test which result with 100% Code Coverage report.

Launch mutation tests with yarn mutation to find potential code issues that are not covered with tests.

Launch dummy api fuzzing tests with yarn test-fuzzing to find potential code issues that are not covered with tests.

About

TypeScript. Theory and examples. What 100% Code Coverage will not tell you


Languages

Language:TypeScript 52.1%Language:HTML 27.0%Language:JavaScript 20.9%