File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
layout : default
3
- title : AutoTest Design
4
- nav_order : 11
3
+ title : AutoTest
4
+ nav_order : 5
5
5
parent : Development
6
6
---
7
7
8
8
# AutoTest Design
9
9
10
- ## Basic Rule
10
+ ## Design Principle
11
+
12
+ Create rule:
11
13
12
14
- if test code exists and LLM returns with import syntax, AutoDev will replace all code.
13
15
- if test code exists and LLM returns with no import syntax, AutoDev will insert test code after the last import statement.
14
16
- if test code does not exist, AutoDev will insert test code.
15
17
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
+
16
25
## Test Prompts
17
26
18
27
Write unit test for the following Kotlin code.
You can’t perform that action at this time.
0 commit comments