A plugin to use Intern in Stryker, the JavaScript mutation testing framework. It works with Intern 4 and above.
A note on the status of this work. It currently does the following:
- Detects when Intern has run a test
- Detects when Intern has run a test that failed
- Detects when Intern has run a test that timed out
- Detects when Intern has skipped a test
But I guess it's far from complete yet. Adding coverage support would be a great way to make it run faster. There's probably a few other things that need to be ironed out. With that said, I'm more than happy with any contributions.
Given how much Stryker has changed, most of the Stryker related code is outdated. This repo may give some inspiration on how to programmatically interact with Intern. But for the Stryker part, it's best to refer to the Create a plugin guide from the Stryker documentation.
This package has not yet been published on npm. For now, you can clone this repository and install it yourself.
You can configure the stryker-intern-runner
using the stryker.conf.js
config file.
// Stryker.conf.js
module.exports = function (config) {
config.set({
// ...
testRunner: 'intern',
// ...
});
}