I've lost the ability to create tests for a class
已回答
Since I have updated to 2024.2.3 of Intellij Ultimate, I am not able to create tests using the “create test” option. Although the intention is still enabled, “create test” is not in the pop-up menu when a class is selected (the only option is “Show UML Diagram”). Everything was working until the update, and it's the same in every repository.
If I use Navigate:Test or the keyboard shortcut, I get an error that says “No test subjects found” even though the Class name is highlighted. If a test already exists, it will navigate to that test. I just can't use any automation to create a new test (like I've been doing for years).
Is there something I can check to fix this?
请先登录再写评论。
Hi Eddielovelace,
Please disable K2 mode to enable this intention via the menu File | Settings | Languages & Frameworks | Kotlin or use the new EAP version https://www.jetbrains.com/idea/nextversion/ . This is a known issue and is fixed in 2024.3:
https://youtrack.jetbrains.com/issue/KTIJ-30467/K2-Port-Create-Test-intention
Just in case to help other users here.