Contains example projects and other information from my talk "Lies, Damn Lies, and Code Coverage" given at the 2019 dev up conference in St. Louis, MO (St. Charles, MO).
The following two TypeScript Node.js projects were used in the talk:
- bowling-kata - A simple function that calculates the score of a bowling game given an array of pins knocked down per throw of the bowling ball.
- project-estimator - A simple function that calculates the number of QA individuals a project should have based on the number of developers on the team.
To install the dependencies for an example project from the command line, go to that project's folder and enter the following command:
npm install
To run the unit tests for an example project from the command line, go to that project's folder and enter the following command:
npm run test
To run the unit tests with code coverage for an example project from the command line, go to that project's folder and enter the following command:
npm run test-coverage
To run the mutation test tool, Striker, for an example project from the command line, go to that project's folder and enter the following command:
npm run test-mutation