[SUREFIRE-2039] Fix skipped test classes reporting#493
[SUREFIRE-2039] Fix skipped test classes reporting#493SammyVimes wants to merge 1 commit intoapache:masterfrom
Conversation
22dda03 to
9d3644e
Compare
|
@SammyVimes So sometimes, it is better to make a small step and precisely write JIRA ticket. |
|
@Tibor17 JIRA report has a reproducer attached to it, it's really small (https://github.com/SammyVimesFiledIssues/SUREFIRE-2039). I fully understand that this patch at this moment is not the right one (it doesn't even have tests) and, of course, I do not expect it to be merged right away. On the contrary, as a fellow Apache Committer, I'm willing to work on this issue iff you deem it worthy |
|
Hey @SammyVimes , I would rather see your help in the reimplementation of
|
|
This pull request is obsolete. The referenced issue is a duplicate of SUREFIRE-2032 which was fixed in 3.0.0-M8 with pull request #564. |
|
@SammyVimes thanks for your effort |
|
Resolve #2605 |
https://issues.apache.org/jira/browse/SUREFIRE-2039
Why:
Skipped test classes reports are being added into the non-skipped test classes reports (see attached JIRA issue for detailed information). The reproducer can be found here: https://github.com/SammyVimesFiledIssues/SUREFIRE-2039
What:
A simple fix that tests if the report entry of a skipped test is a skipped test class report, not a skipped test method report, and reports it. This fix is not ideal because it relies on a side effect (empty test name which indicates that the report is about a test class, not a test method), I don't really like this approach because I think there should be a separate
BOOTERCODEfor the skipped test class, but at the same time, I think this issue and the solution approach should be reviewed by maintainers because I don't have a deep knowledge of the source code yet. I will happily rewrite the patch according to suggestions on the matter.I also wonder where should I put a test for this scenario because as far as I can see, no test is relying on the specific implementation of the
TestReportListenerclass, so it probably should be a new test class.Following this checklist to help us incorporate your
contribution quickly and easily:
for the change (usually before you start working on it). Trivial changes like typos do not
require a JIRA issue. Your pull request should address just this issue, without
pulling in other changes.
[SUREFIRE-XXX] - Fixes bug in ApproximateQuantiles,where you replace
SUREFIRE-XXXwith the appropriate JIRA issue. Best practiceis to use the JIRA issue title in the pull request title and in the first line of the
commit message.
mvn clean installto make sure basic checks pass. A more thorough check willbe performed on your pull request automatically.
mvn -Prun-its clean install).If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.
To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.
I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004
In any other case, please file an Apache Individual Contributor License Agreement.