@binary-balance/seshat 0.3.0 → 0.4.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.
- package/README.md +7 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -11,6 +11,7 @@ insufficiently tested code.
|
|
|
11
11
|
|
|
12
12
|
- Calculates function complexity and CRAP scores from branch coverage.
|
|
13
13
|
- Changes comparison operators one at a time and checks whether tests detect them.
|
|
14
|
+
- Replaces function bodies to find covered functions whose removal tests miss.
|
|
14
15
|
- Runs tests in isolated copies of the captured project.
|
|
15
16
|
- Produces readable terminal output and versioned JSON, with optional CI thresholds.
|
|
16
17
|
- Supports explicit source selection, multiple test setups and parallel mutation workers.
|
|
@@ -123,6 +124,12 @@ is one changed comparison, such as `>` to `>=`. If tests catch two of three
|
|
|
123
124
|
mutants, the score is `66.67%`. A timeout or execution error leaves the run
|
|
124
125
|
incomplete and withholds the score. Neither score proves correctness.
|
|
125
126
|
|
|
127
|
+
`check` and `mutate` also replace eligible function bodies to detect pseudo-tested
|
|
128
|
+
functions, those whose body replacement tests miss despite positive coverage.
|
|
129
|
+
These flags and counts are separate from the comparison mutation score. `mutate`
|
|
130
|
+
collects fresh coverage to skip unexecuted functions; it does not apply CRAP
|
|
131
|
+
thresholds. Extreme mutation uses replacement even with experimental switching.
|
|
132
|
+
|
|
126
133
|
## Use in CI
|
|
127
134
|
|
|
128
135
|
Add optional thresholds to `seshat.json`:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@binary-balance/seshat",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "A native CLI for TypeScript and TSX complexity analysis and mutation testing.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"LICENSE"
|
|
21
21
|
],
|
|
22
22
|
"optionalDependencies": {
|
|
23
|
-
"@binary-balance/seshat-linux-x64": "0.
|
|
24
|
-
"@binary-balance/seshat-linux-arm64": "0.
|
|
25
|
-
"@binary-balance/seshat-darwin-x64": "0.
|
|
26
|
-
"@binary-balance/seshat-darwin-arm64": "0.
|
|
27
|
-
"@binary-balance/seshat-win32-x64": "0.
|
|
23
|
+
"@binary-balance/seshat-linux-x64": "0.4.0",
|
|
24
|
+
"@binary-balance/seshat-linux-arm64": "0.4.0",
|
|
25
|
+
"@binary-balance/seshat-darwin-x64": "0.4.0",
|
|
26
|
+
"@binary-balance/seshat-darwin-arm64": "0.4.0",
|
|
27
|
+
"@binary-balance/seshat-win32-x64": "0.4.0"
|
|
28
28
|
}
|
|
29
29
|
}
|