IntelliJ Alt+Enter dialog does not list "Create Test"

Viewed 4400

When I press Alt + Enter on a class name in IntelliJ (version 2017.2 on a Windows 10 machine) the Create Testoption is not listed. What can I do to get it there?

My window looks like enter image description here

And i was expecting something like enter image description here It comes from the IntelliJ help page for creating tests.

Is there an option to add the Create Test dialog to the menu?

2 Answers

To enable this option, go to IDEA Settings -> Editor -> Intentions -> Java -> Declaration and select checkbox Create Test. Search in top left corner can help.

IntellJ IDEA setting create test

Related