package
Mutation testing for Node.js and JavaScript
npm install mutodeGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Mutation testing for Node.js and JavaScript.
Mutode generates mutants (small changes of code) and runs your tests. If the tests fail, it means the mutant was detected and killed; if your tests pass, it means the mutant survived and your tests can be improved.
Read the thesis proposal here
"It's like a test for your tests!" - @mappum
"Higher order testing: automated testing for your unit tests" - @albertomiranda
Requires Node 8+
Globally:
npm i -g mutodeLocally as a dev dependency:
npm i -D mutodeGlobally:
mutode [options] [paths]Locally with npx:
npx mutode [options] [paths]Locally with a package.json script:
{
...
"scripts": {
"test: "my test command",
"mutode": "mutode [options] [paths]"
}
...
}Options:
Usage: mutode [options] [paths]
Options:
--concurrency, -c Concurrency of mutant runners [number] [default: 4]
--mutators, -m Specific mutators to load (space separated)
[array] [choices: "booleanLiterals", "conditionalsBoundary", "increments",
"invertNegatives", "math", "negateConditionals", "numericLiterals",
"removeArrayElements", "removeConditionals", "removeFuncCallArgs",
"removeFuncParams", "removeFunctions", "removeLines", "removeObjProps",
"removeSwitchCases", "stringLiterals"]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]MIT Copyright © Diego Rodríguez Baquero
Estimated unpacked size across 61 packages.
6.1 MB+
Includes dependencies.
3.0.1
^6.18.0
6.18.0
^3.1.0
10.0.0
^2.1.0
2.8.0
^4.0.0
7.2.0
^1.0.2
1.0.2
^2.0.9
2.0.14
^1.0.5
5.0.0