Skip to content

Commit 023cf93

Browse files
committed
agent: 更新测试相关的skill
1 parent 2add4f2 commit 023cf93

File tree

2 files changed

+15
-18
lines changed

2 files changed

+15
-18
lines changed

docs/agent/rules/ai-usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ uv run python bot.py # 运行
1616

1717
## 测试
1818

19-
- 运行指令: scripts\test\run\_unit\_test.bat, 需要一点时间, 不要重复执行
19+
- 使用技能run-tests
2020

2121
## 风格
2222

docs/agent/skills/run-tests/SKILL.md

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,7 @@ Run tests for the DicePP project to validate implementation correctness.
1919

2020
**Steps**
2121

22-
1. **Check Python environment**
23-
24-
Verify Python is available:
25-
```powershell
26-
python --version
27-
```
28-
29-
If Python is not available:
30-
- Add CRITICAL issue: "Python not found"
31-
- Recommendation: "Install Python 3.10+ and ensure it's in PATH"
32-
33-
2. **Check dependencies**
22+
1. **Check dependencies**
3423

3524
Verify pytest is installed:
3625
```powershell
@@ -40,7 +29,7 @@ Run tests for the DicePP project to validate implementation correctness.
4029
If pytest is not installed:
4130
- Recommendation: "Run: uv pip install '.[dev]'"
4231

43-
3. **Run All Tests**
32+
2. **Run All Tests**
4433

4534
Execute pytest:
4635
```powershell
@@ -60,7 +49,7 @@ Run tests for the DicePP project to validate implementation correctness.
6049
- List failing tests
6150
- Recommendation: "Fix failing tests before continuing"
6251

63-
4. **Run Specific Module Tests**
52+
3. **Run Specific Module Tests**
6453

6554
To test a specific module:
6655
```powershell
@@ -74,7 +63,7 @@ Run tests for the DicePP project to validate implementation correctness.
7463
uv run pytest tests/core/ -v
7564
```
7665

77-
5. **Run Coverage Report**
66+
4. **Run Coverage Report**
7867

7968
Execute pytest with coverage:
8069
```powershell
@@ -85,7 +74,7 @@ Run tests for the DicePP project to validate implementation correctness.
8574
- Report coverage percentage
8675
- List uncovered lines if below threshold
8776

88-
6. **Generate Test Report**
77+
5. **Generate Test Report**
8978

9079
Create a summary report:
9180

@@ -136,4 +125,12 @@ uv run pytest tests/module/roll/test_karma.py -v
136125
- All tests must pass (exit code 0)
137126
- Coverage should be maintained or improved
138127

139-
If tests fail, report specific failing tests and suggest fixes.
128+
If tests fail, report specific failing tests and suggest fixes.
129+
130+
**Important Note**
131+
132+
测试运行需要一定时间(约1分钟),请耐心等待测试完成后再查看结果。
133+
134+
在 Trae IDE 中运行测试时,输出可能会以"实时滚动"的方式显示,只显示最新的一行内容。这是正常的输出行为,不代表内容被截断。请等待测试完全结束后再读取完整结果。
135+
136+
如果需要保存完整输出用于后续分析,可以使用重定向

0 commit comments

Comments
 (0)