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

Enable url links to tests results.

Open mPokornyETM opened this issue 3 years ago • 2 comments

What feature do you want to see added?

It will be great when jUnit support url links. POV we import results after every suite. It helps to get job health quickly. (~400 suites, 120K testcases, ~ 1milion assertions can take a while) After every suite we archive all failed projects ( this is not maven things), logs, crash dumps ... It will be really great when jUnit function support links to URLs like option url : [ [link : 'https://..../artifacts', text : 'Artifacts']
Or for security reasons enable only relative URLs to jenkins. This will help the user to navigate from test case to real log, configs ...

When you allow also external URLs we can point suite results to source code management too.

Or whatever the user want.

Oh I forgot. The links should be shown in sidebar when I navigate to suite results

Upstream changes

No response

mPokornyETM avatar May 19 '22 21:05 mPokornyETM

can you explain more? Or sketch up a mock up?

I don't really understand what the URL is for

timja avatar May 19 '22 21:05 timja

The think is easy, but my English crappy, sorry ;-) So, it shall be new interface to junit() call. A new option sideBarLinks like list of URLs, this option must be filled by user self (in groovy code) When I add a URL to import file (pattern), I expect in side bare suite view also this link. The link self need 2 options - link and name.

What the user fill there does not matter. This is the user business logic self

In my case it will be links to:

  • corresponded build artifact
  • test source code repository

So the user can can fast navigate to relevant data.

ex: junit sideBarLinks: [[link : '/artifact/suite_TESTFRAMEWORK/' : name 'Artifacts to suite_TESTFRAMEWORK'], ], testResults: 'suite_TESTFRAMEWORK.xml'

the reult shall be like this image

And I see that there shall be optional parameter icon

ps: when it is to much effort update side-bar. The links might be shown in top of page.

mPokornyETM avatar May 20 '22 06:05 mPokornyETM