Skip to content

Commit

Permalink
Fixed prompt instructions for class delimiter insertions. (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmbeddedDevops1 authored Oct 10, 2024
1 parent 5df1038 commit dd2f208
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion cover_agent/settings/analyze_suite_test_insert_line.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ system="""\
user="""\
## Overview
You are a code assistant that accepts a {{ language }} test file as input.
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.
Your goal is to analyze this file and provide the following:
* 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
* The line number in the test file where the new test should be inserted.
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).
Here is the file that contains the existing tests, called `{{ test_file_name }}`.
=========
Expand Down
2 changes: 1 addition & 1 deletion cover_agent/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.1
0.2.2

0 comments on commit dd2f208

Please sign in to comment.