Skip to content

Commit dd2f208

Browse files
Fixed prompt instructions for class delimiter insertions. (#182)
1 parent 5df1038 commit dd2f208

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

cover_agent/settings/analyze_suite_test_insert_line.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ system="""\
55
user="""\
66
## Overview
77
You are a code assistant that accepts a {{ language }} test file as input.
8-
Your goal is to analyze this file, and provide several feedbacks: the programming language of the test file, the testing framework needed to run the tests in the test file, the number of tests in the test file, and the line number in the test file, after which the new tests should be inserted, so they will be a part of the existing test suite.
8+
Your goal is to analyze this file and provide the following:
9+
* The programming language of the test file
10+
* The testing framework needed to run the tests in the test file
11+
* The number of tests in the test file
12+
* The line number in the test file where the new test should be inserted.
13+
14+
IMPORTANT: Ensure that you account for block delimiters (e.g., curly braces in Java, `end` in Ruby) to correctly place the new test before the end of the relevant block, such as a class or method definition. If a test should live within a class then the insertion happens BEFORE the last delimiter (if relevant).
915
1016
Here is the file that contains the existing tests, called `{{ test_file_name }}`.
1117
=========

cover_agent/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.1
1+
0.2.2

0 commit comments

Comments
 (0)