A demo of unit and mutation testing using Karma, Jasmine & Stryker in an angularjs 1.6 project.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 8 commits ahead, 2 commits behind Mattia46:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
app.js
app.spec.js
karma.conf.js
package.json
stryker.conf.js

README.md

This is a test project to demo unit tests and mutation testing in an angular 1.6 project using Karma as a test runner and Jasmine as a testing framework. Stryker is used for mutation testing.

To run the unit tests execute npm test.

To run the tests with mutation run npm run mutate.

For debugging purposes (outputs all mutations in the console):

node_modules/.bin/stryker run --logLevel debug stryker.conf.js

And even more verbose:

node_modules/.bin/stryker run --logLevel trace stryker.conf.js