Reputation: 591
When I press Alt + Enter
on a class name in IntelliJ (version 2017.2 on a Windows 10 machine) the Create Test
option is not listed. What can I do to get it there?
And i was expecting something like
It comes from the IntelliJ help page for creating tests.
Is there an option to add the Create Test
dialog to the menu?
Upvotes: 11
Views: 6378
Reputation: 41
In order to create a test for JUnit in IntelliJ kindly follow these steps:
Ensure you check the class function/member checkbox then click OK
Upvotes: 0
Reputation: 67
To enable this option, go to IDEA Settings -> Editor -> Intentions -> Java -> Declaration and select checkbox Create Test. Search in top left corner can help.
Upvotes: 1
Reputation: 507
Default is Ctrl + Shift + T
or you can change it by entering the keymap menu, Ctrl + Alt + S
to open up the settings, then keymap...
Upvotes: 5