Community
Participate
Working Groups
It would be very helpful to apply the package abbreviation/compression preferences to the JUnit view.
The view does not directly render a package like in other places, but just shows the name of the test (suite). Applying the package name compression/abbreviation could be misleading here. Markus, I suggest to close as WONTFIX.
It's correct that test names don't have a well-defined structure. But in practice, the TestSuite constructors default to the fully-qualified type name, and our double-click/"Go to File" action also relies on that. I think we can safely assume that if a test name starts with a qualified name, it's OK to interpret it as a package name. The implementation is in org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabelComposer.appendAbbreviatedPackageFragment(IPackageFragment) and the label provider is org.eclipse.jdt.internal.junit.ui.TestSessionLabelProvider.