We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For instance, the following code should tell me that it's "def" that's failing.
"def"
@ParameterizedTest @ValueSource(strings = {"abc", "def"}) void doSomeTest(String str) { assertTrue("abc".equals(str)); }
Here's its output:
Running hello.MyTest Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.123 sec <<< FAILURE! - in hello.MyTest doSomeTest(String) Time elapsed: 0.013 sec <<< FAILURE! org.opentest4j.AssertionFailedError: at hello.MyTest.doSomeTest(MyTest.java:54) Results : Failed tests: doSomeTest(String).doSomeTest(String) Run 1: PASS Run 2: MyTest.doSomeTest:54
I would expect the failed tests to show which parameters were given to the failing test.
Additionally, the "failed tests" list mentions doSomeTest(String).doSomeTest(String), shouldn't it be hello.MyTest.doSomeTest(String)?
doSomeTest(String).doSomeTest(String)
hello.MyTest.doSomeTest(String)
The final output should be:
Results : Failed tests: hello.MyTest.doSomeTest(String) Run 1 ("abc"): PASS Run 2 ("def"): MyTest.doSomeTest:54
Here's a repository showcasing the issue: junit5-issue1111
The text was updated successfully, but these errors were encountered:
Which tool do you use to execute your tests?
If you execute them via the console launcher or within an IDE, you get what you expect.
Sorry, something went wrong.
I'm using Maven. Good ol' plain Maven.
Yeah. Maven reporter needs some love ...
The root cause is that Surefire does not support non-technical display names. I'm therefore closing this issue as duplicate of #990.
No branches or pull requests
Overview
For instance, the following code should tell me that it's
"def"
that's failing.Here's its output:
I would expect the failed tests to show which parameters were given to the failing test.
Additionally, the "failed tests" list mentions
doSomeTest(String).doSomeTest(String)
, shouldn't it behello.MyTest.doSomeTest(String)
?The final output should be:
Here's a repository showcasing the issue: junit5-issue1111
The text was updated successfully, but these errors were encountered: