intellij-community icon indicating copy to clipboard operation
intellij-community copied to clipboard

KTIJ-28155: Remove 'Kt' suffix for test class name

Open krzema12 opened this issue 6 months ago • 1 comments

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

Screenshot 2023-12-13 at 21 49 27 Screenshot 2023-12-13 at 21 49 34

krzema12 avatar Dec 13 '23 20:12 krzema12

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).

vladimirdolzhenko avatar Jan 02 '24 12:01 vladimirdolzhenko

Sorry, I have to drop working on this fix. Feel free to take over.

krzema12 avatar Mar 01 '24 12:03 krzema12

I think it is worth to close it.

vladimirdolzhenko avatar Mar 11 '24 10:03 vladimirdolzhenko