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

Test results for @Disabled @ParameterizedTest are not displayed correctly in IntelliJ #2560

Closed
renyiwei-xinyi opened this issue Mar 1, 2021 · 5 comments

Comments

@renyiwei-xinyi
Copy link

renyiwei-xinyi commented Mar 1, 2021

When combined with parameterized test annotations, the results are not displayed correctly. The expected test_skip is @Disabled, but is actually not reported.

public class TestDisabled {

	@Disabled
	@ParameterizedTest
	@ValueSource(strings = {"test"})
	void test_skip(Object test) {
		System.out.println(test);
	}

	@Disabled
	@Test
	void test_skip_test() {
		System.out.println("test");
	}

}
@renyiwei-xinyi
Copy link
Author

image

@sbrannen sbrannen changed the title @Disabled, //When combined with parameterized test annotations, the results are not displayed correctly. The expected test_skip is @Disabled , but is actually not reported. Test results for @Disabled @ParameterizedTest are not displayed correctly in IntelliJ Mar 1, 2021
@sbrannen
Copy link
Member

sbrannen commented Mar 1, 2021

I've edited your comment to improve the formatting. You might want to check out this Mastering Markdown guide for future reference.

@sbrannen
Copy link
Member

sbrannen commented Mar 1, 2021

This looks like a presentation issue in IntelliJ IDEA.

@marcphilipp and @sormuras, can one of you confirm this?

@sbrannen
Copy link
Member

sbrannen commented Mar 1, 2021

For example, Eclipse IDE displays the disabled parameterized test method as an "empty container".

image

If the parameterized test method is not disabled, Eclipse displays a green check mark for the parameterized test container.

image

@marcphilipp
Copy link
Member

We've verified that JUnit reports the test_skip(Object) container as skipped but IntelliJ IDEA shows it as having passed. Please open an issue for IntelliJ to get that fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants