csspilot 0.5.0 → 0.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.
- package/README.md +76 -23
- package/dist/bin.js +934 -249
- package/dist/index.js +934 -249
- package/dist/skills/testpilot/SKILL.md +84 -78
- package/dist/skills/testpilot/manifest.yaml +1 -1
- package/dist/skills/testpilot/rules/assertion.md +8 -0
- package/dist/skills/testpilot/rules/case-design.md +47 -29
- package/dist/skills/testpilot/rules/dsl.md +62 -0
- package/dist/skills/testpilot/workflows/analyze-result.md +4 -2
- package/dist/skills/testpilot/workflows/create-case.md +33 -16
- package/dist/skills/testpilot/workflows/run-case.md +3 -0
- package/dist/skills/testpilot/workflows/test-requirements-review.md +143 -61
- package/dist/skills/testpilot/workflows/validate.md +4 -0
- package/package.json +11 -11
- package/LICENSE +0 -21
|
@@ -16,6 +16,10 @@ npx csspilot validate <file> # 指定文件
|
|
|
16
16
|
- locator 是否合法
|
|
17
17
|
- 必填字段
|
|
18
18
|
- 变量引用
|
|
19
|
+
- fixture/dataset 路径必须位于 `tests/e2e/data/`,格式与 rowId 合法且 fixture 无冲突
|
|
20
|
+
- `requires` 路径语法与可用作用域
|
|
21
|
+
- setup/steps/teardown 的变量定义顺序
|
|
22
|
+
- `expectRequests` 仅用于支持的 UI 动作
|
|
19
23
|
- 当前 adapter 是否支持该 action
|
|
20
24
|
|
|
21
25
|
输出 `ValidationResult`;有错误时修复 Case 后重新校验,全部通过才允许 run。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "csspilot",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "TestPilot — AI Native 跨端业务测试基础设施 CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -17,23 +17,23 @@
|
|
|
17
17
|
"files": [
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "node build.mjs",
|
|
22
|
+
"dev": "tsx src/bin.ts",
|
|
23
|
+
"start": "tsx src/bin.ts",
|
|
24
|
+
"typecheck": "tsc --noEmit"
|
|
25
|
+
},
|
|
20
26
|
"dependencies": {
|
|
21
27
|
"miniprogram-automator": "^0.12.0",
|
|
22
28
|
"playwright": "^1.53.0"
|
|
23
29
|
},
|
|
24
30
|
"devDependencies": {
|
|
31
|
+
"@testpilot/core": "workspace:^",
|
|
32
|
+
"@testpilot/sdk": "workspace:^",
|
|
25
33
|
"@types/node": "^22.0.0",
|
|
26
34
|
"commander": "^12.0.0",
|
|
27
35
|
"esbuild": "^0.25.0",
|
|
28
36
|
"tsx": "^4.19.0",
|
|
29
|
-
"typescript": "^5.5.0"
|
|
30
|
-
"@testpilot/core": "^0.1.0",
|
|
31
|
-
"@testpilot/sdk": "^0.1.0"
|
|
32
|
-
},
|
|
33
|
-
"scripts": {
|
|
34
|
-
"build": "node build.mjs",
|
|
35
|
-
"dev": "tsx src/bin.ts",
|
|
36
|
-
"start": "tsx src/bin.ts",
|
|
37
|
-
"typecheck": "tsc --noEmit"
|
|
37
|
+
"typescript": "^5.5.0"
|
|
38
38
|
}
|
|
39
|
-
}
|
|
39
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 TestPilot contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|