-
Notifications
You must be signed in to change notification settings - Fork 65
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 user check dialog #28
add user check dialog #28
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great feature 🙇 I think that ideally, test customization option should be available on demand rather then a preconfigured setting. for instance on existing TestMe test generation dialog, at end of each test template name - would be great to have some arrow/icon/dots - that opens a sub menu with "Customize..." entry. so user can choose to generate test with defaults as currently done of go through another dialog to customize tested code. But for now, this is a good step forward.
src/main/java/com/weirddev/testme/intellij/action/CreateTestMeAction.java
Outdated
Show resolved
Hide resolved
src/main/java/com/weirddev/testme/intellij/action/CreateTestMeAction.java
Outdated
Show resolved
Hide resolved
src/main/java/com/weirddev/testme/intellij/action/CreateTestMeAction.java
Outdated
Show resolved
Hide resolved
src/main/java/com/weirddev/testme/intellij/configuration/TestMeConfig.java
Outdated
Show resolved
Hide resolved
src/main/java/com/weirddev/testme/intellij/generator/TestTemplateContextBuilder.java
Outdated
Show resolved
Hide resolved
src/main/java/com/weirddev/testme/intellij/ui/classconfigdialog/CreateTestMeDialog.java
Outdated
Show resolved
Hide resolved
src/main/java/com/weirddev/testme/intellij/ui/classconfigdialog/CreateTestMeDialog.java
Outdated
Show resolved
Hide resolved
src/main/java/com/weirddev/testme/intellij/ui/classconfigdialog/CreateTestMeDialog.java
Outdated
Show resolved
Hide resolved
src/main/java/com/weirddev/testme/intellij/ui/classconfigdialog/CreateTestMeDialog.java
Outdated
Show resolved
Hide resolved
src/main/java/com/weirddev/testme/intellij/ui/settings/TestMeSettingsForm.form
Outdated
Show resolved
Hide resolved
…into feature/add-user-select-dialog # Conflicts: # src/main/java/com/weirddev/testme/intellij/template/context/MockitoMockBuilder.java # src/main/java/com/weirddev/testme/intellij/template/context/PowerMockBuilder.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great contribution. I'm sure most users would value this feature as I do. Posted mainly technical comments of minor issues. adding at least 1 integration test with custom selections would be nice. If you're short on time - let me know, I can merge and deal with those later. Big thank you, impressive work.
src/main/java/com/weirddev/testme/intellij/ui/customizedialog/CustomizeTestDialog.java
Outdated
Show resolved
Hide resolved
src/main/java/com/weirddev/testme/intellij/ui/customizedialog/CustomizeTestDialog.java
Outdated
Show resolved
Hide resolved
src/main/java/com/weirddev/testme/intellij/ui/customizedialog/CustomizeTestDialog.java
Outdated
Show resolved
Hide resolved
src/main/java/com/weirddev/testme/intellij/ui/customizedialog/CustomizeTestDialog.java
Outdated
Show resolved
Hide resolved
src/main/java/com/weirddev/testme/intellij/ui/customizedialog/CustomizeTestDialog.java
Outdated
Show resolved
Hide resolved
src/main/java/com/weirddev/testme/intellij/ui/customizedialog/CustomizeTestDialog.java
Outdated
Show resolved
Hide resolved
src/main/java/com/weirddev/testme/intellij/template/context/PowerMockBuilder.java
Outdated
Show resolved
Hide resolved
I'm sorry, i fixed the issues but i don't known how to make a integration test with custom selections. |
src/main/java/com/weirddev/testme/intellij/ui/customizedialog/CustomizeTestDialog.java
Outdated
Show resolved
Hide resolved
src/main/java/com/weirddev/testme/intellij/ui/customizedialog/CustomizeTestDialog.java
Outdated
Show resolved
Hide resolved
src/main/java/com/weirddev/testme/intellij/ui/customizedialog/CustomizeTestDialog.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/com/weirddev/testme/intellij/generator/TestMeGeneratorTestBase.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing PR 🙇
testMeConfig.setOpenCustomizeTestDialog(true); | ||
final FileTemplateConfig fileTemplateConfig = new FileTemplateConfig(testMeConfig); | ||
List<String> selectedFieldNameList = new ArrayList<>(); | ||
selectedFieldNameList.add("result"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, project jdk version has bean upgraded in recent years. can use List.of()
Released in TestMe plugin version 6.4 |
open a check dialog for user to select fields to mock and methods to test