TheSoftwareDesignLab / mutode

Mutation testing for JavaScript and Node.js
https://thesoftwaredesignlab.github.io/mutode/
MIT License
64 stars 3 forks source link

Run only related tests #13

Open camjc opened 6 years ago

camjc commented 6 years ago

Jest can run related tests only, either through -o for uncommitted files, or through --findRelatedTests path/to/fileA.js path/to/fileB.js to find tests related to those particular files.

If we could find a way to do this and pass the actively mutating file through we could run just the tests that we need to and massively speed up mutation testing (a few tests vs an entire suite per mutation).

Not sure if other test frameworks support this kind of thing, it'd be great to implement in a generic/extensible way.

antoniogeroncio commented 6 years ago

Please help us in this regard, today I can not use the detailed command in the documentation about the paths.