junit-plugin icon indicating copy to clipboard operation
junit-plugin copied to clipboard

Add a list of all Skipped tests to the Test Result report

Open nirgilboa opened this issue 7 years ago • 15 comments

In a large test suite, it is useful to easily see a list of all skipped tests, as well as their age, i.e. for how many builds they've been skipped. Previously it was only possible to view all tests in a given class, then sort by result to view the Skipped tests in it.

Note that I've left the "Duration" column, as tests may sometimes be skipped during execution, but it might be better to remove it to reduce clutter - I could use some feedback on that.

image

nirgilboa avatar Jun 26 '18 07:06 nirgilboa

@rsandell @uhafner I'd appreciate your feedback, thanks :smiley:

nirgilboa avatar Jun 30 '18 19:06 nirgilboa

Added an integration test which indeed helped to fix a logical error in getSkippedSince(). Thanks for your feedback!!

nirgilboa avatar Jul 08 '18 15:07 nirgilboa

@jglick ping

nirgilboa avatar Jul 30 '18 15:07 nirgilboa

@jglick @abayer Could you please review and decide on this?

nirgilboa avatar Sep 06 '18 08:09 nirgilboa

I like the change in general. One small thing I would like to see improved is making the list of skipped tests less significant in the UI. Collapsed by default? Moved to the very bottom? It is useful for sure but probably distracting most of the time...

olivergondza avatar Nov 28 '18 19:11 olivergondza

@olivergondza Skipped tests table collapsed by default, accessible using a link placed at the bottom of the page. I've tried to stay consistent with the style on the summary page. Screenshots below:

Screenshot_ubuntu17 10_2019-05-31_16:48:42

Link is hidden and table is shown: Screenshot_ubuntu17 10_2019-05-31_16:49:08

nirgilboa avatar May 31 '19 13:05 nirgilboa

The skippedSince value is saved to XML (automatic saving of all fields, IIUC implemented by XStream2), but in most cases it's not computed before saving. See SuiteResultTest::testSuiteResultPersistence for implementation of saving test. For failedSince the freeze method makes sure that the field is computed before saving. If you add recomputeSkippedSinceIfNeeded() to CaseResult::freeze, saving will work, but it may lead to loading all the previous results from the disk. So recomputeSkippedSinceIfNeeded should fall back to previous build number if previous build failed but we don't know since when it's failing.

Also fixing the freeze method will cause a failure of the test testPreviousBuildNotLoaded from #117. Other way of testing for deep recursion is needed (maybe include 2 builds and make sure that we don't call getPreviousBuild on the older one?)

zbynek avatar Jun 01 '19 09:06 zbynek

Is it possible, that this feature will be merged? :) I would like to use this feature as well :)

hodnajit avatar Jul 22 '22 10:07 hodnajit

I'd love to see this feature available. What is lacking for a release? Basically lack of engagement? :-|

SebastianSolidwork avatar Feb 14 '23 14:02 SebastianSolidwork

I'd love to see this feature available. What is lacking for a release? Basically lack of engagement? :-|

reviewing if https://github.com/jenkinsci/junit-plugin/pull/106#issuecomment-497928233 needs fixing and then resolving conflicts and testing it end 2 end. Basically needs someone (anyone) to pick it up and get it over the finish line.

timja avatar Feb 14 '23 15:02 timja

I'll be happy to revive this and push it if there's demand :)

nirgilboa avatar Feb 14 '23 15:02 nirgilboa

Nice! There is demand :-) How could you have waited for so long !?!?12 ;-)

I would interested in the All Tests the least. How about making All Skipped Tests as second table, like in the original comment? At least configurable? If this is too much for here, I would create another issue.

SebastianSolidwork avatar Feb 15 '23 08:02 SebastianSolidwork

@nirgilboa, please resolve the conflicts. Thanks!

olivergondza avatar Feb 25 '23 10:02 olivergondza

@nirgilboa Any news on this one?

SebastianSolidwork avatar May 23 '23 06:05 SebastianSolidwork

Still here :) Sorry switched into a new role at work

Promise promise promise to complete it soon

nirgilboa avatar May 23 '23 15:05 nirgilboa