sumlyzer 0.5.1 → 0.5.2

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 (2) hide show
  1. package/README.md +9 -6
  2. package/package.json +11 -17
package/README.md CHANGED
@@ -11,6 +11,10 @@
11
11
  <a href="./LICENSE"><img src="https://img.shields.io/npm/l/sumlyzer.svg" alt="license" /></a>
12
12
  </p>
13
13
 
14
+ ## Ever lost a failing test in thousands of lines of workspace output?
15
+
16
+ ## Ever wished your npm workspaces stopped at the first failure?
17
+
14
18
  `npm run test --workspaces --if-present` runs every workspace, but gives you no
15
19
  aggregated summary and no way to fail fast — an early failure just scrolls off
16
20
  screen once later workspaces print their own output.
@@ -110,18 +114,17 @@ Summary
110
114
 
111
115
  | Column | Meaning |
112
116
  | --------------- | ------------------------------------------------------------------------------------------------ |
113
- | `(index)` | Workspace name — `console.table` is fed an object keyed by workspace name (via `workspaceName` in [reporter.mjs](./src/reporter.mjs)) instead of an array, so this column carries the name instead of a meaningless row number |
114
- | `status` | `PASS`, `FAIL`, or `SKIPPED` (only reached when `--ff` stopped scheduling before this workspace ran) |
117
+ | `(index)` | Workspace name |
118
+ | `status` | `PASS`, `FAIL`, or `SKIPPED` (reached when `--ff` stopped scheduling before this workspace ran) |
115
119
  | `duration` | Wall-clock time for the whole `npm run <script> --workspace=<path>` process, including npm/spawn overhead |
116
- | `testsDuration` | `duration_ms` as reported by node's own test runner — the actual test execution time, without the npm overhead |
120
+ | `testsDuration` | `duration_ms` as reported by node's own test runner |
117
121
  | `tests` | Total number of tests node:test ran in that workspace |
118
122
  | `pass` | Number of passing tests |
119
123
  | `fail` | Number of failing tests |
120
124
  | `skip` | Tests reported as skipped (`ℹ skipped`), e.g. `t.skip()` or `{ skip: true }` |
121
- | `todo` | Tests reported as todo (`ℹ todo`), e.g. `t.todo()` — intentionally not implemented yet, distinct from `skip` |
122
- | `cancelled` | Tests reported as cancelled (`ℹ cancelled`), e.g. a timeout or a parent suite/hook failure that aborted them — unlike `skip`/`todo` this usually signals a real problem |
125
+ | `todo` | Tests reported as todo (`ℹ todo`), e.g. `t.todo()` |
126
+ | `cancelled` | Tests reported as cancelled (`ℹ cancelled`), unlike `skip`/`todo` this usually signals a real problem |
123
127
 
124
- `duration` and `testsDuration` are deliberately both shown: a gap between them usually means npm/process startup overhead rather than slow tests. `tests` always equals `pass + fail + skip + todo + cancelled`; the last three columns exist so none of those buckets can hide silently behind an all-green `pass`/`fail` pair.
125
128
 
126
129
  ### On failure
127
130
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sumlyzer",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Run every npm workspace's test script, only show output for the ones that fail, and finish with an aggregated pass/fail summary.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -24,25 +24,19 @@
24
24
  "release": "npm publish --dry-run"
25
25
  },
26
26
  "keywords": [
27
- "npm",
28
- "test reporter",
29
- "test summary",
30
- "workspaces test summary",
31
- "node test",
32
- "test-runner",
27
+ "npm workspaces test output",
28
+ "npm workspaces logs",
29
+ "node test runner",
30
+ "node --test",
31
+ "monorepo test output",
32
+ "workspace test logs",
33
+ "parallel test output",
34
+ "npm test readability",
33
35
  "cli",
34
- "fail-fast",
35
- "summary",
36
- "npm-workspaces",
37
- "monorepo",
38
- "test-reporter",
39
- "node-test",
40
- "node:test",
41
- "test-summary",
42
- "ci",
43
36
  "junit",
44
37
  "junit-xml",
45
- "github-actions"
38
+ "github-actions",
39
+ "monorepo"
46
40
  ],
47
41
  "author": {
48
42
  "name": "Erwan Raulo",