Skip to content

Commit cc08738

Browse files
feat: empty-expression-mutator (#6012)
Add Empty Expression mutator for calls, throws, and supported Svelte template expressions closes: #5765
1 parent 83dc2e1 commit cc08738

69 files changed

Lines changed: 1305 additions & 783 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎e2e/test/angular-project/verify/verify.js.snap‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ Object {
55
"compileErrors": 0,
66
"ignored": 27,
77
"killed": 5,
8-
"mutationScore": 33.33333333333333,
8+
"mutationScore": 31.25,
99
"mutationScoreBasedOnCoveredCode": 62.5,
10-
"noCoverage": 7,
10+
"noCoverage": 8,
1111
"pending": 0,
1212
"runtimeErrors": 0,
1313
"survived": 3,
1414
"timeout": 0,
1515
"totalCovered": 8,
1616
"totalDetected": 5,
1717
"totalInvalid": 0,
18-
"totalMutants": 42,
19-
"totalUndetected": 10,
20-
"totalValid": 15,
18+
"totalMutants": 43,
19+
"totalUndetected": 11,
20+
"totalValid": 16,
2121
}
2222
`;

‎e2e/test/babel-transpiling/verify/verify.js.snap‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ Object {
55
"compileErrors": 0,
66
"ignored": 0,
77
"killed": 25,
8-
"mutationScore": 53.191489361702125,
9-
"mutationScoreBasedOnCoveredCode": 53.191489361702125,
8+
"mutationScore": 51.02040816326531,
9+
"mutationScoreBasedOnCoveredCode": 51.02040816326531,
1010
"noCoverage": 0,
1111
"pending": 0,
1212
"runtimeErrors": 1,
13-
"survived": 22,
13+
"survived": 24,
1414
"timeout": 0,
15-
"totalCovered": 47,
15+
"totalCovered": 49,
1616
"totalDetected": 25,
1717
"totalInvalid": 1,
18-
"totalMutants": 48,
19-
"totalUndetected": 22,
20-
"totalValid": 47,
18+
"totalMutants": 50,
19+
"totalUndetected": 24,
20+
"totalValid": 49,
2121
}
2222
`;

‎e2e/test/cucumber-old-version/verify/verify.js.snap‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ exports[`After running stryker on a cucumber-ts project should report expected s
44
Object {
55
"compileErrors": 0,
66
"ignored": 0,
7-
"killed": 4,
8-
"mutationScore": 66.66666666666666,
7+
"killed": 5,
8+
"mutationScore": 71.42857142857143,
99
"mutationScoreBasedOnCoveredCode": 100,
1010
"noCoverage": 2,
1111
"pending": 0,
1212
"runtimeErrors": 2,
1313
"survived": 0,
1414
"timeout": 0,
15-
"totalCovered": 4,
16-
"totalDetected": 4,
15+
"totalCovered": 5,
16+
"totalDetected": 5,
1717
"totalInvalid": 2,
18-
"totalMutants": 8,
18+
"totalMutants": 9,
1919
"totalUndetected": 2,
20-
"totalValid": 6,
20+
"totalValid": 7,
2121
}
2222
`;

‎e2e/test/cucumber-ts/verify/verify.js.snap‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ Object {
55
"compileErrors": 0,
66
"ignored": 0,
77
"killed": 65,
8-
"mutationScore": 45.20547945205479,
8+
"mutationScore": 44.5945945945946,
99
"mutationScoreBasedOnCoveredCode": 61.6822429906542,
10-
"noCoverage": 39,
10+
"noCoverage": 41,
1111
"pending": 0,
1212
"runtimeErrors": 17,
1313
"survived": 41,
1414
"timeout": 1,
1515
"totalCovered": 107,
1616
"totalDetected": 66,
1717
"totalInvalid": 17,
18-
"totalMutants": 163,
19-
"totalUndetected": 80,
20-
"totalValid": 146,
18+
"totalMutants": 165,
19+
"totalUndetected": 82,
20+
"totalValid": 148,
2121
}
2222
`;

‎e2e/test/ignore-project/verify/verify.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ describe('After running stryker on jest-react project', () => {
7474
({ location }) => location.start.line === 18,
7575
);
7676

77-
expect(mutantsAtLine2).lengthOf(2);
78-
expect(mutantsAtLine8).lengthOf(1);
79-
expect(mutantsAtLine13).lengthOf(1);
77+
expect(mutantsAtLine2).lengthOf(3);
78+
expect(mutantsAtLine8).lengthOf(2);
79+
expect(mutantsAtLine13).lengthOf(2);
8080
expect(mutantsAtLine18).lengthOf(1);
8181
[...mutantsAtLine2, ...mutantsAtLine8, ...mutantsAtLine13].forEach(
8282
(mutant) => {

‎e2e/test/ignore-project/verify/verify.js.snap‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
exports[`After running stryker on jest-react project should report expected scores 1`] = `
44
Object {
55
"compileErrors": 0,
6-
"ignored": 32,
6+
"ignored": 35,
77
"killed": 8,
88
"mutationScore": 50,
99
"mutationScoreBasedOnCoveredCode": 100,
@@ -15,7 +15,7 @@ Object {
1515
"totalCovered": 8,
1616
"totalDetected": 8,
1717
"totalInvalid": 0,
18-
"totalMutants": 48,
18+
"totalMutants": 51,
1919
"totalUndetected": 8,
2020
"totalValid": 16,
2121
}

‎e2e/test/jest-custom-env/verify/verify.js.snap‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ exports[`After running stryker with test runner jest on test environment "node"
44
Object {
55
"compileErrors": 0,
66
"ignored": 0,
7-
"killed": 24,
8-
"mutationScore": 75,
9-
"mutationScoreBasedOnCoveredCode": 82.75862068965517,
7+
"killed": 25,
8+
"mutationScore": 75.75757575757575,
9+
"mutationScoreBasedOnCoveredCode": 83.33333333333334,
1010
"noCoverage": 3,
1111
"pending": 0,
1212
"runtimeErrors": 1,
1313
"survived": 5,
1414
"timeout": 0,
15-
"totalCovered": 29,
16-
"totalDetected": 24,
15+
"totalCovered": 30,
16+
"totalDetected": 25,
1717
"totalInvalid": 1,
18-
"totalMutants": 33,
18+
"totalMutants": 34,
1919
"totalUndetected": 8,
20-
"totalValid": 32,
20+
"totalValid": 33,
2121
}
2222
`;

‎e2e/test/jest-react-testing-library-ts/verify/verify.js.snapss‎

Lines changed: 0 additions & 22 deletions
This file was deleted.

‎e2e/test/jest-react-ts/verify/verify.js.snap‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ exports[`After running stryker on jest-react-ts project should report expected s
44
Object {
55
"compileErrors": 0,
66
"ignored": 0,
7-
"killed": 62,
8-
"mutationScore": 60.36036036036037,
9-
"mutationScoreBasedOnCoveredCode": 72.82608695652173,
10-
"noCoverage": 19,
7+
"killed": 63,
8+
"mutationScore": 60.17699115044248,
9+
"mutationScoreBasedOnCoveredCode": 73.11827956989248,
10+
"noCoverage": 20,
1111
"pending": 0,
1212
"runtimeErrors": 0,
1313
"survived": 25,
1414
"timeout": 5,
15-
"totalCovered": 92,
16-
"totalDetected": 67,
15+
"totalCovered": 93,
16+
"totalDetected": 68,
1717
"totalInvalid": 0,
18-
"totalMutants": 111,
19-
"totalUndetected": 44,
20-
"totalValid": 111,
18+
"totalMutants": 113,
19+
"totalUndetected": 45,
20+
"totalValid": 113,
2121
}
2222
`;

‎e2e/test/jest-with-ts/verify/verify.js.snap‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ exports[`Verify stryker has ran correctly should report correct score 1`] = `
44
Object {
55
"compileErrors": 35,
66
"ignored": 0,
7-
"killed": 14,
8-
"mutationScore": 58.333333333333336,
9-
"mutationScoreBasedOnCoveredCode": 58.333333333333336,
7+
"killed": 16,
8+
"mutationScore": 61.53846153846154,
9+
"mutationScoreBasedOnCoveredCode": 61.53846153846154,
1010
"noCoverage": 0,
1111
"pending": 0,
1212
"runtimeErrors": 1,
1313
"survived": 10,
1414
"timeout": 0,
15-
"totalCovered": 24,
16-
"totalDetected": 14,
15+
"totalCovered": 26,
16+
"totalDetected": 16,
1717
"totalInvalid": 36,
18-
"totalMutants": 60,
18+
"totalMutants": 62,
1919
"totalUndetected": 10,
20-
"totalValid": 24,
20+
"totalValid": 26,
2121
}
2222
`;

0 commit comments

Comments
 (0)