Stryker: Migrate grunt/js-mutation-testing mutators

Created on 20 Apr 2016  路  6Comments  路  Source: stryker-mutator/stryker

grunt-mutation-testing and js-mutation-testing contain mutators which are not yet supported by Stryker.

_The existing mutators have to be reviewed to decide which mutators should be supported by Stryker._

@paysdoc @jimivdw How would you like to migrate the mutators? Do _you_ want to migrate them, do you want to do it together with me? Do you want me to do all of them?

The mutators of stryker are currently being overhauled. The most recent version can be found on the new-mutator branch

help wanted 馃殌 Feature request

Most helpful comment

Let's close this One :)

All 6 comments

I have migrated the block statement mutator from js-mutation-testing as an example.

You can find it here

Stumbled upon a piece of code like this in a project:

this.someArray()
    .sort()
    .map(x => someFunction(x))
    .filter(someFilter);

with no test demanding the sort being present. Putting the .sort() method in comments did not fail a test.

So I am longing for a mutator that strips out array functions that do not alter the items (like map) but only affect the sequence (like sort and filter).

That's an interesting mutator! Unfortunately it's also quite difficult to implement because the AST does not contain information on what the result of the someArray() is. We could of course create a mutator that removes one function call. What do you think of that?

That would be awesome. Just stripping out function calls one by one in a method chain.

Do we still want the grunt/js-mutation-testing mutators? If not; i want to close this issue and maybe create another issue for the method chaining mutator of @riezebosch

Let's close this One :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rabomarnix picture rabomarnix  路  5Comments

kmdrGroch picture kmdrGroch  路  5Comments

karfau picture karfau  路  5Comments

CheshireSwift picture CheshireSwift  路  5Comments

kmdrGroch picture kmdrGroch  路  4Comments