supertape 11.0.1 → 11.0.3
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/ChangeLog +23 -1
- package/README.md +2 -2
- package/bin/formatter.mjs +2 -2
- package/lib/cli.js +2 -2
- package/lib/formatter/index.js +2 -2
- package/lib/run-tests.js +6 -6
- package/package.json +6 -6
package/ChangeLog
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
2025.03.23, v11.0.3
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 5a9a17c supertape: @supertape/formatter-tap v4.0.0
|
|
5
|
+
- 3ea01c2 supertape: @supertape/formatter-fail v4.0.0
|
|
6
|
+
- a246a25 @supertape/formatter-fail: drop support of node < 20
|
|
7
|
+
- 3c62551 @supertape/formatter-fail: @supertape/formatter-tap v4.0.0
|
|
8
|
+
|
|
9
|
+
2025.03.23, v11.0.2
|
|
10
|
+
|
|
11
|
+
feature:
|
|
12
|
+
- 6aea862 supertape: @supertape/formatter-tap v3.0.3
|
|
13
|
+
- d1eece2 supertape: @supertape/formatter-short v3.0.0
|
|
14
|
+
- bea1d5d supertape: @supertape/formatter-progress-bar v7.0.0
|
|
15
|
+
- ef58c41 supertape: @supertape/formatter-time v2.0.0
|
|
16
|
+
- 3ced88c @supertape/formatter-time: drop support of node < 20
|
|
17
|
+
- 17a464a @supertape/formatter-tap: drop support of node < 20
|
|
18
|
+
- 2858384 @supertape/formatter-short: drop support of node < 20
|
|
19
|
+
- 3a45986 @supertape/progress-bar: drop support of node < 20
|
|
20
|
+
- 232c211 supertape: skiped -> skipped
|
|
21
|
+
- 8d43809 @supertape/formatter-json-lines: drop support of node < 20
|
|
22
|
+
|
|
1
23
|
2025.03.23, v11.0.1
|
|
2
24
|
|
|
3
25
|
feature:
|
|
@@ -809,7 +831,7 @@ feature:
|
|
|
809
831
|
2021.01.09, v4.6.0
|
|
810
832
|
|
|
811
833
|
feature:
|
|
812
|
-
- (supertape) add ability to show
|
|
834
|
+
- (supertape) add ability to show skipped count when using only
|
|
813
835
|
|
|
814
836
|
|
|
815
837
|
2021.01.09, v4.5.1
|
package/README.md
CHANGED
|
@@ -83,7 +83,7 @@ Options
|
|
|
83
83
|
- `SUPERTAPE_CHECK_DUPLICATES` - toggle check duplicates;
|
|
84
84
|
- `SUPERTAPE_CHECK_SCOPES` - check that test message has a scope: `scope: subject`;
|
|
85
85
|
- `SUPERTAPE_CHECK_ASSERTIONS_COUNT` - check that assertion count is no more then 1;
|
|
86
|
-
- `
|
|
86
|
+
- `SUPERTAPE_CHECK_SKIPPED` - check that skipped count equal to `0`, exit with status code;
|
|
87
87
|
- `SUPERTAPE_LOAD_LOOP_TIMEOUT` - timeout for load tests, defaults to `5ms`, when mocha used as runner - `50ms` optimal;
|
|
88
88
|
|
|
89
89
|
```js
|
|
@@ -282,7 +282,7 @@ test('lib: diff', (t) => {
|
|
|
282
282
|
| 2 | `WAS_STOP` | test was halted by user |
|
|
283
283
|
| 3 | `UNHANDLED`| unhandled exception occurred |
|
|
284
284
|
| 4 | `INVALID_OPTION`| wrong option provided |
|
|
285
|
-
| 5 | `SKIPED` | works only with `SUPERTAPE_CHECK_SKIPED` env variable when
|
|
285
|
+
| 5 | `SKIPED` | works only with `SUPERTAPE_CHECK_SKIPED` env variable when skipped files 1 and more |
|
|
286
286
|
|
|
287
287
|
Here is how exit code can look like:
|
|
288
288
|
|
package/bin/formatter.mjs
CHANGED
|
@@ -50,12 +50,12 @@ export const createFormatter = (parentPort) => {
|
|
|
50
50
|
}]);
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
formatter.on('end', ({count, passed, failed,
|
|
53
|
+
formatter.on('end', ({count, passed, failed, skipped}) => {
|
|
54
54
|
parentPort.postMessage(['end', {
|
|
55
55
|
count,
|
|
56
56
|
passed,
|
|
57
57
|
failed,
|
|
58
|
-
|
|
58
|
+
skipped,
|
|
59
59
|
}]);
|
|
60
60
|
});
|
|
61
61
|
|
package/lib/cli.js
CHANGED
|
@@ -52,10 +52,10 @@ module.exports = async ({argv, cwd, stdout, stderr, exit, isStop, workerFormatte
|
|
|
52
52
|
failed,
|
|
53
53
|
code,
|
|
54
54
|
message,
|
|
55
|
-
|
|
55
|
+
skipped,
|
|
56
56
|
} = result;
|
|
57
57
|
|
|
58
|
-
if (Number(SUPERTAPE_CHECK_SKIPED) &&
|
|
58
|
+
if (Number(SUPERTAPE_CHECK_SKIPED) && skipped)
|
|
59
59
|
return exit(SKIPED);
|
|
60
60
|
|
|
61
61
|
if (failed)
|
package/lib/formatter/index.js
CHANGED
|
@@ -63,13 +63,13 @@ module.exports.createFormatter = async (name) => {
|
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
formatter.on('end', ({count, passed, failed,
|
|
66
|
+
formatter.on('end', ({count, passed, failed, skipped}) => {
|
|
67
67
|
harness.write({
|
|
68
68
|
type: 'end',
|
|
69
69
|
count,
|
|
70
70
|
passed,
|
|
71
71
|
failed,
|
|
72
|
-
|
|
72
|
+
skipped,
|
|
73
73
|
});
|
|
74
74
|
});
|
|
75
75
|
|
package/lib/run-tests.js
CHANGED
|
@@ -37,22 +37,22 @@ module.exports = async (tests, {formatter, operators, isStop}) => {
|
|
|
37
37
|
return await runTests(onlyTests, {
|
|
38
38
|
formatter,
|
|
39
39
|
operators,
|
|
40
|
-
|
|
40
|
+
skipped: tests.length - onlyTests.length,
|
|
41
41
|
isStop,
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
const notSkipedTests = tests.filter(notSkip);
|
|
45
|
-
const
|
|
45
|
+
const skipped = tests.filter(isSkip).length;
|
|
46
46
|
|
|
47
47
|
return await runTests(notSkipedTests, {
|
|
48
48
|
formatter,
|
|
49
49
|
operators,
|
|
50
|
-
|
|
50
|
+
skipped,
|
|
51
51
|
isStop,
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
async function runTests(tests, {formatter, operators,
|
|
55
|
+
async function runTests(tests, {formatter, operators, skipped, isStop}) {
|
|
56
56
|
const count = fullstore(0);
|
|
57
57
|
const failed = fullstore(0);
|
|
58
58
|
const passed = fullstore(0);
|
|
@@ -106,14 +106,14 @@ async function runTests(tests, {formatter, operators, skiped, isStop}) {
|
|
|
106
106
|
count: count(),
|
|
107
107
|
failed: failed(),
|
|
108
108
|
passed: passed(),
|
|
109
|
-
|
|
109
|
+
skipped,
|
|
110
110
|
});
|
|
111
111
|
|
|
112
112
|
return {
|
|
113
113
|
count: count(),
|
|
114
114
|
failed: failed(),
|
|
115
115
|
passed: passed(),
|
|
116
|
-
|
|
116
|
+
skipped,
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supertape",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.3",
|
|
4
4
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
5
5
|
"description": "📼 Supertape simplest high speed test runner with superpowers",
|
|
6
6
|
"homepage": "http://github.com/coderaiser/supertape",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"@putout/cli-keypress": "^2.0.0",
|
|
44
44
|
"@putout/cli-validate-args": "^2.0.0",
|
|
45
45
|
"@supertape/engine-loader": "^2.0.0",
|
|
46
|
-
"@supertape/formatter-fail": "^
|
|
46
|
+
"@supertape/formatter-fail": "^4.0.0",
|
|
47
47
|
"@supertape/formatter-json-lines": "^2.0.0",
|
|
48
|
-
"@supertape/formatter-progress-bar": "^
|
|
49
|
-
"@supertape/formatter-short": "^
|
|
50
|
-
"@supertape/formatter-tap": "^
|
|
51
|
-
"@supertape/formatter-time": "^
|
|
48
|
+
"@supertape/formatter-progress-bar": "^7.0.0",
|
|
49
|
+
"@supertape/formatter-short": "^3.0.0",
|
|
50
|
+
"@supertape/formatter-tap": "^4.0.0",
|
|
51
|
+
"@supertape/formatter-time": "^2.0.0",
|
|
52
52
|
"@supertape/operator-stub": "^3.0.0",
|
|
53
53
|
"cli-progress": "^3.8.2",
|
|
54
54
|
"flatted": "^3.3.1",
|