Change test suite name to short form

Answered

I'm using IntelliJ version 2021.3.2 to run JUnit tests. I want the test suite name to be displayed in short form (Eg: "ItemsTest") instead of the full name including the package name (Eg: "com.myorg.services.ItemsTest") but I can't find a way to do that with the new version 2021.3.2

0
4 comments

Hi, could you pls share a screenshot as it's not very clear in which tab you see the full name?
Thanks

0

As you can see, under Test Results, it shows "com.my.domain.name.MyTest"
In the older version, it shows only "MyTest", and that is what I expected it to be :( And also with version 2021.3.2, I can not right-click on "My test 1()" to Run/Debug only it, only Run/Debug the whole test suite "MyTest" is allowed.

0

Thanks for clarifying, you can follow the issue here: https://youtrack.jetbrains.com/issue/IDEA-290079
As a current workaround, you can try to set 'Run tests using' to 'IntelliJ IDEA' in Preferences | Build, Execution, Deployment | Build Tools | Gradle

1

With your suggestion, it works.

Thank you :D 

0

Please sign in to leave a comment.