Skip to content

Latest commit

 

History

History

simple-app-age-restriction

Age restriction Function Example

This folder contains a simple age restriction application. The mutation testing framework Stryker is used to realize the mutation testing itself.

Project setup

To try out the demo, Node.js is needed.

  1. Get the dependencies via npm install
  2. Check out ./src/index.js and the corresponding test file.

To-do List

  1. Optional: Run the tests npm run test:unit
  2. Run the original test suite with npm run test:original
  3. See the two tests from ./src/tests/index.js passing and the mutation score
  4. Run the test suite with the new test that would kill the mutant with npm run test:with-new-test
  5. See that the test is failing
  6. Fix the bug in the function in ./src/index.js (hint: check the slides)
  7. Run the test suite with the new test again (npm run test:with-fix)
  8. See that all mutants were killed!
  9. ???
  10. Profit