Skip to content

Commit 620a4cc

Browse files
committed
docs(workflow): rename and update documentation for AutoTest
1 parent 79ef0be commit 620a4cc

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

docs/development/test-prompting.md renamed to docs/workflow/auto-test.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
11
---
22
layout: default
3-
title: AutoTest Design
4-
nav_order: 11
3+
title: AutoTest
4+
nav_order: 5
55
parent: Development
66
---
77

88
# AutoTest Design
99

10-
## Basic Rule
10+
## Design Principle
11+
12+
Create rule:
1113

1214
- if test code exists and LLM returns with import syntax, AutoDev will replace all code.
1315
- if test code exists and LLM returns with no import syntax, AutoDev will insert test code after the last import statement.
1416
- if test code does not exist, AutoDev will insert test code.
1517

18+
Run rule:
19+
20+
- if run configuration exists, AutoDev will create a new run configuration.
21+
- if run configuration does not exist, AutoDev will create a new run configuration.
22+
23+
For more, see in [AutoTestService](https://github.com/unit-mesh/auto-dev/blob/master/src/main/kotlin/cc/unitmesh/devti/provider/AutoTestService.kt)
24+
1625
## Test Prompts
1726

1827
Write unit test for the following Kotlin code.

0 commit comments

Comments
 (0)