Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestSessionLabelProviderCustom shows JUnit 5 TestTemplate poorly #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

trancexpress
Copy link

When org.eclipse.jdt.junit.runners is included in a product, JUnit 5 TestTemplate tests are not displayed correctly in the JUnit view. E.g. a RepeatTest is displayed as follows:

test.TestTemplatesJunit5

  • test.TestTemplatesJunit5
    ** test1

Without this plug-in, the JUnit view has more useful contents:

TestTemplatesJunit5

  • test1()
    ** repetition 1 of 1

This is due to outdated contents in TestSessionLabelProviderCustom, when compared to TestSessionLabelProvider. Only the latter was updated to deal with JUnit 5 tests.

This change adjusts TestSessionLabelProviderCustom.getSimpleLabel() to the change in TestSessionLabelProvider.getSimpleLabel() for: https://bugs.eclipse.org/bugs/show_bug.cgi?id=488566

Fixes: #18

When org.eclipse.jdt.junit.runners is included in a product, JUnit 5
TestTemplate tests are not displayed correctly in the JUnit view. E.g. a
RepeatTest is displayed as follows:

test.TestTemplatesJunit5
* test.TestTemplatesJunit5
** test1

Without this plug-in, the JUnit view has more useful contents:

TestTemplatesJunit5
* test1()
** repetition 1 of 1

This is due to outdated contents in TestSessionLabelProviderCustom, when
compared to TestSessionLabelProvider. Only the latter was updated to
deal with JUnit 5 tests.

This change adjusts TestSessionLabelProviderCustom.getSimpleLabel() to
the change in TestSessionLabelProvider.getSimpleLabel() for:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=488566

Fixes: meysholdt#18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TestSessionLabelProviderCustom shows JUnit 5 TestTemplate poorly
1 participant