Skip to content

Commit 1bee22b

Browse files
committed
feat(auto-test): introduce auto-test design for prompt-based development
The commit introduces a new auto-test design for prompt-based development, enhancing the testing capabilities of the system. This design ensures that test code is automatically inserted or updated based on the presence and syntax of the test code provided by the developer.
1 parent f0e2372 commit 1bee22b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/development/test-prompting.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
---
22
layout: default
3-
title: Test Prompts
3+
title: AutoTest Design
44
nav_order: 2
55
parent: Development
66
---
77

8+
# AutoTest Design
9+
10+
## Basic Rule
11+
12+
- if test code exists and LLM return with import syntax, AutoDev will replace all code.
13+
- if test code exists and LLM return with no import syntax, AutoDev will insert test code after the last import statement.
14+
- if test code does not exist, AutoDev will insert test code.
15+
816
## Test Prompts
917

1018
Write unit test for following Kotlin code.

0 commit comments

Comments
 (0)