dsh-flakefinder 0.3.1 → 0.3.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.
- package/lib/tools.js +2 -6
- package/package.json +1 -1
package/lib/tools.js
CHANGED
|
@@ -22,10 +22,6 @@ function compileParameters(spec) {
|
|
|
22
22
|
node.description = prop.description;
|
|
23
23
|
if (typeof prop?.items === 'string')
|
|
24
24
|
node.items = { type: prop.items };
|
|
25
|
-
if (prop?.minItems !== undefined)
|
|
26
|
-
node.minItems = prop.minItems;
|
|
27
|
-
if (prop?.maxItems !== undefined)
|
|
28
|
-
node.maxItems = prop.maxItems;
|
|
29
25
|
properties[key] = node;
|
|
30
26
|
}
|
|
31
27
|
return { type: 'object', properties, ...(required.length > 0 ? { required } : {}) };
|
|
@@ -200,7 +196,7 @@ export function buildFlakeTools(cfg, runner, store) {
|
|
|
200
196
|
name: 'flaky_quarantine',
|
|
201
197
|
description: '把确认的 flaky 用例写入项目根 .flakefinder.json 隔离清单(不修改测试源码)。需要 flaky_detect 判定为 flaky 后再使用。',
|
|
202
198
|
parameters: compileParameters({
|
|
203
|
-
tests: { type: 'array', items: 'string',
|
|
199
|
+
tests: { type: 'array', items: 'string', required: true, description: '1-100 条测试引用:文件路径,或 "文件路径 > 用例名"。' },
|
|
204
200
|
reason: { type: 'string', required: true, description: '隔离原因(会写进清单,例如:定时器竞态,见 issue #12)。' },
|
|
205
201
|
}),
|
|
206
202
|
output: {
|
|
@@ -227,7 +223,7 @@ export function buildFlakeTools(cfg, runner, store) {
|
|
|
227
223
|
name: 'flaky_clear',
|
|
228
224
|
description: '从隔离清单移除已经恢复稳定的用例。建议先 flaky_detect 验证多轮全部通过后再清除。',
|
|
229
225
|
parameters: compileParameters({
|
|
230
|
-
tests: { type: 'array', items: 'string',
|
|
226
|
+
tests: { type: 'array', items: 'string', required: true, description: '1-100 条测试引用:文件路径,或 "文件路径 > 用例名"。' },
|
|
231
227
|
}),
|
|
232
228
|
output: {
|
|
233
229
|
schema: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-flakefinder",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "DSH 测试稳定性插件:flaky_detect/history/quarantine/clear/report 五工具,支持 vitest/jest/pytest/node:test,重复运行测试并识别不稳定用例,JUnit/TAP 完整解析,JSON 历史与隔离清单,零运行时依赖。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|