From 40a93a7901b3c9b040d23e73e8a8e6096f92e8e0 Mon Sep 17 00:00:00 2001 From: Embedded DevOps Date: Tue, 8 Oct 2024 10:54:42 -0700 Subject: [PATCH] Fixed prompt instructions for class delimiter insertions. --- cover_agent/settings/analyze_suite_test_insert_line.toml | 8 +++++++- cover_agent/version.txt | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cover_agent/settings/analyze_suite_test_insert_line.toml b/cover_agent/settings/analyze_suite_test_insert_line.toml index 616d6f70..6b07ca2d 100644 --- a/cover_agent/settings/analyze_suite_test_insert_line.toml +++ b/cover_agent/settings/analyze_suite_test_insert_line.toml @@ -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 }}`. ========= diff --git a/cover_agent/version.txt b/cover_agent/version.txt index 7dff5b89..f4778493 100644 --- a/cover_agent/version.txt +++ b/cover_agent/version.txt @@ -1 +1 @@ -0.2.1 \ No newline at end of file +0.2.2 \ No newline at end of file