GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||
GeezerVison is showing github.com — Fix empty and missing testcase entries for JUnit 5 @BeforeAll/@AfterAll failures by MilanTyagi2004 · Pull Request #3329 · apache/maven-surefire Conversation
Contributor
ProblemJUnit 5 container-level failures (e.g.,
Solution
Result
Tests
[x] I hereby declare this contribution to be licensed under the Apache License 2.0
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
olamy
requested changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we make this a class constant?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
Hi @olamy , i am checking why ci/cd fail . give me some time. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
hi @olamy i fix the ci/cd failure . and test locally using mvn -B clean verify -Prun-its and build success. would appreciate your review when you have time. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
thanks for fixing this! to add another datapoint: the surefire output looks like this: so no errors are being reported and the jenkins junit report also shows no problems, but the single test method in the class is reported "passed" 4 times. since this seems pretty serious, i would kindly ask for a new surefire release once this fix is in, thank you! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
i just realized, my test is not junit5 based i.e. using |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@XN137 , |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@MilanTyagi2004 is that a new test your are adding or an existing one (didnt find it on master)? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
this is new test i just added to make sure every thing is on right right direction |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@olamy |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@XN137 could you please tell me what i should do . should we create separate another pr for this. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@MilanTyagi2004 i am just a regular surefire user, so i can't tell you what you should do to be honest 😅 it also kind of depends on the findings with your added test. alternatively, we should file a dedicated issue mentioning both junit4 and 5 and then this PR can keep the junit5 scope and we will need to follow-up with a fix and tests for the junit4 cases. if your tests found no problems with junit4, you can ignore all my comments and we will need to investigate this separately. what this PR is missing even if its only for junit5:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
sure we can discuss the junit4 issues in another pr. for RunListenerAdapter.java changes are needed to pass error to xml. , and i understand but before adding Junit 5 test which cover |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
well with |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@olamy is there any thing i nned to add in this pr. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Junit tests failing during @BeforeClass methods have inaccurate xml report
There was an error while loading. Please reload this page.