Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add info message after test case copying #94

Merged
merged 2 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.jetbrains.research.testspark.display

import com.intellij.lang.Language
import com.intellij.notification.NotificationGroupManager
import com.intellij.notification.NotificationType
import com.intellij.openapi.command.WriteCommandAction
import com.intellij.openapi.components.service
import com.intellij.openapi.diff.DiffColors
Expand Down Expand Up @@ -181,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
!Build error messages
commonBuildErrorMessage=Please make sure that IntelliJ can build your project without any issues or provide the correct build command in the settings
sendingFeedback=Sending your request to LLM
Expand Down
Loading