apex-mutation-testing 1.6.1 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/README.md +34 -3
  2. package/lib/commands/apex/mutation/test/run.d.ts +1 -0
  3. package/lib/commands/apex/mutation/test/run.js +4 -0
  4. package/lib/commands/apex/mutation/test/run.js.map +1 -1
  5. package/lib/service/configReader.js +1 -0
  6. package/lib/service/configReader.js.map +1 -1
  7. package/lib/service/exactColoring.d.ts +25 -0
  8. package/lib/service/exactColoring.js +143 -0
  9. package/lib/service/exactColoring.js.map +1 -0
  10. package/lib/service/groupExecutor.d.ts +29 -0
  11. package/lib/service/groupExecutor.js +194 -0
  12. package/lib/service/groupExecutor.js.map +1 -0
  13. package/lib/service/mutantGenerator.d.ts +2 -0
  14. package/lib/service/mutantGenerator.js +26 -1
  15. package/lib/service/mutantGenerator.js.map +1 -1
  16. package/lib/service/mutationGrouper.d.ts +22 -0
  17. package/lib/service/mutationGrouper.js +130 -0
  18. package/lib/service/mutationGrouper.js.map +1 -0
  19. package/lib/service/mutationLocation.d.ts +12 -0
  20. package/lib/service/mutationLocation.js +54 -0
  21. package/lib/service/mutationLocation.js.map +1 -0
  22. package/lib/service/mutationTestingService.d.ts +3 -6
  23. package/lib/service/mutationTestingService.js +71 -177
  24. package/lib/service/mutationTestingService.js.map +1 -1
  25. package/lib/service/timeUtils.d.ts +1 -0
  26. package/lib/service/timeUtils.js +8 -0
  27. package/lib/service/timeUtils.js.map +1 -1
  28. package/lib/type/ApexMutationParameter.d.ts +1 -0
  29. package/messages/apex.mutation.test.run.md +13 -1
  30. package/npm-shrinkwrap.json +553 -378
  31. package/oclif.manifest.json +7 -1
  32. package/package.json +13 -13
@@ -128,6 +128,12 @@
128
128
  "multiple": false,
129
129
  "type": "option"
130
130
  },
131
+ "mutation-grouping": {
132
+ "name": "mutation-grouping",
133
+ "summary": "Group mutations whose covering tests are disjoint into a single deploy + test run. Reduces deployments and async test-run kickoffs at the cost of larger blast radius on compile errors. Runs the full pipeline: test-induced clique lower bound → DSATUR heuristic → exact backtracking coloring. Off by default.",
134
+ "allowNo": false,
135
+ "type": "boolean"
136
+ },
131
137
  "target-org": {
132
138
  "char": "o",
133
139
  "name": "target-org",
@@ -193,5 +199,5 @@
193
199
  ]
194
200
  }
195
201
  },
196
- "version": "1.6.1"
202
+ "version": "1.7.0"
197
203
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "apex-mutation-testing",
3
3
  "description": "Apex mutation testing plugin",
4
- "version": "1.6.1",
4
+ "version": "1.7.0",
5
5
  "dependencies": {
6
- "@oclif/core": "^4.10.5",
7
- "@salesforce/apex-node": "^8.4.21",
8
- "@salesforce/core": "^8.28.3",
9
- "@salesforce/sf-plugins-core": "^12.2.6",
6
+ "@oclif/core": "^4.11.0",
7
+ "@salesforce/apex-node": "^8.4.22",
8
+ "@salesforce/core": "^8.29.0",
9
+ "@salesforce/sf-plugins-core": "^12.2.13",
10
10
  "@stryker-mutator/core": "^9.6.1",
11
11
  "antlr4ts": "^0.5.0-alpha.4",
12
12
  "apex-parser": "^2.17.0",
@@ -15,20 +15,20 @@
15
15
  "re2": "^1.24.0"
16
16
  },
17
17
  "devDependencies": {
18
- "@biomejs/biome": "2.4.12",
19
- "@commitlint/config-conventional": "^20.5.0",
20
- "@oclif/plugin-help": "^6.2.44",
18
+ "@biomejs/biome": "2.4.14",
19
+ "@commitlint/config-conventional": "^20.5.3",
20
+ "@oclif/plugin-help": "^6.2.46",
21
21
  "@salesforce/dev-config": "^4.3.3",
22
22
  "@stryker-mutator/vitest-runner": "^9.6.1",
23
23
  "@types/async": "^3.2.25",
24
- "@vitest/coverage-v8": "^4.1.4",
24
+ "@vitest/coverage-v8": "^4.1.5",
25
25
  "husky": "^9.1.7",
26
- "knip": "^6.4.1",
26
+ "knip": "^6.11.0",
27
27
  "oclif": "^4.23.0",
28
28
  "shx": "^0.4.0",
29
29
  "tslib": "^2.8.1",
30
30
  "typescript": "^6.0.3",
31
- "vitest": "^4.1.4",
31
+ "vitest": "^4.1.5",
32
32
  "wireit": "^0.14.12"
33
33
  },
34
34
  "engines": {
@@ -66,8 +66,8 @@
66
66
  "dependencies:upgrade": "npx npm-check-updates -u ; npm install ; npm audit fix",
67
67
  "deploy:testclasses": "sf project deploy start -d test/classes",
68
68
  "test:e2e:setup": "sf project deploy start -d test/classes -o e2e-test-org",
69
- "test:e2e:run": "sf apex mutation test run -o e2e-test-org -c Mutation -t MutationTest -r test/e2e && npm run test:e2e:normalize",
70
- "test:e2e:run:local": "node ./bin/run.js apex mutation test run -o apex-mutation-testing -c Mutation -t MutationTest -r test/e2e && npm run test:e2e:normalize",
69
+ "test:e2e:run": "sf apex mutation test run -o e2e-test-org -c Mutation -t MutationTest -r test/e2e --mutation-grouping && npm run test:e2e:normalize",
70
+ "test:e2e:run:local": "node ./bin/run.js apex mutation test run -o apex-mutation-testing -c Mutation -t MutationTest -r test/e2e --mutation-grouping && npm run test:e2e:normalize",
71
71
  "test:e2e:normalize": "node tooling/normalize-e2e-snapshot.mjs",
72
72
  "test:e2e:validate": "git diff test/e2e/ && git diff --quiet test/e2e/",
73
73
  "test:e2e:teardown": "sf project deploy start -d test/classes -o e2e-test-org",