Skip to content

Commit

Permalink
Merge pull request #94 from JetBrains-Research/arksap2002/improvement…
Browse files Browse the repository at this point in the history
…s/copyInfoMessage

Add info message after test case copying
  • Loading branch information
arksap2002 authored Jan 8, 2024
2 parents 77d9684 + eaf58ac commit c728ca3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,14 @@ class TestCasePanelFactory(
),
null,
)
NotificationGroupManager.getInstance()
.getNotificationGroup("Test case copied")
.createNotification(
"",
TestSparkBundle.message("testCaseCopied"),
NotificationType.INFORMATION,
)
.notify(project)
}

updateRequestLabel()
Expand Down
6 changes: 2 additions & 4 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,12 @@
displayType="BALLOON"/>
<notificationGroup id="EvoSuite Execution Error"
displayType="BALLOON"/>
<notificationGroup id="Test Validation Error"
displayType="BALLOON"/>
<notificationGroup id="Build Execution Error"
displayType="BALLOON"/>
<notificationGroup id="Validation Result"
displayType="BALLOON"/>
<notificationGroup id="LLM Execution Error"
displayType="BALLOON"/>
<notificationGroup id="Test case copied"
displayType="BALLOON"/>

</extensions>

Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/messages/TestSpark.properties
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ tooLongPrompt=The generated prompt is too long! Please, generate tests for singl
requestError=An error occurred during interaction with the LLM Platform. Code:
savingTestFileIssue=Plugin cannot save the test file
promptReduction=The generated prompt is too long, plugin reduced Large Language Model parameters.
!Test case copied
testCaseCopied=Test case copied
!No request from LLM
noRequestFromLLM=LLM does not provide any response. Could you, please, change the message.
!Build error messages
Expand Down

0 comments on commit c728ca3

Please sign in to comment.