intellij-community
intellij-community copied to clipboard
KTIJ-28155: Remove 'Kt' suffix for test class name
I realize it's a bit hacky solution, and to fix it properly, it would require some serious refactoring: passing Kotlin file name instead of the top-level JVM class name that is generated for the file.
If you think the solution is good enough, that's fine. If not, I'm glad to follow your hints.
Testing
Could you please add tests? Please have a look into GotoTestOrCodeActionTestGenerated
- IntelliJ Kotlin plugin uses test-data - files those represent some particular case, action that should be executed and the result of that execution.
When you add new test data you need to regenerate tests with Generate Kotlin Tests (K1 + K2)
run configuration (or run GenerateAllTestsKt
).
Sorry, I have to drop working on this fix. Feel free to take over.
I think it is worth to close it.