Skip to content

Commit

Permalink
Merge pull request #357 from JetBrains-Research/izaitsev/bugs/modific…
Browse files Browse the repository at this point in the history
…ation-prompt

Modification prompt update
  • Loading branch information
Hello-zoka authored Sep 27, 2024
2 parents 7e4e9cf + bc8c79a commit 9766597
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,13 @@ fun executeTestCaseModificationRequest(
errorMonitor: ErrorMonitor = DefaultErrorMonitor(),
): TestSuiteGeneratedByLLM? {
// Update Token information
val prompt = "For this test:\n ```\n $testCase\n ```\nPerform the following task: $task"
val prompt = buildString {
append("For this test:\n ```\n ")
append(testCase)
append("\n```\nGenerate a SINGLE test method. Do not change class and method names.")
append("\nPerform the following task:\n")
append(task)
}

val packageName = getPackageFromTestSuiteCode(testCase, language)

Expand Down

0 comments on commit 9766597

Please sign in to comment.