-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
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
Blue Ocean TestResult Extension #26
Conversation
8746fee
to
e943f12
Compare
I will try to add some XPath tests on the BlueOcean page too (as soon as I find some time). |
I think it's a good idea. Thanks for contributing! Please highlight eg. me when you feel the PR starts to be feature-ready :) |
I'm not sure why I am getting this problem:
which results to
When I set a breakpoint and visit the given page, it seems like there is no problem at all... However, I found the BlueOcean Acceptance Tests with some useful helpers, but these are not exposed anywhere. |
Move to Java 8. Move to current Jenkins LTS version. Extract and update dependencies. Add BlueOcean as optional dependency. Turn on Spotbugs and git pre-commit hook (formatting, inactive for now).
Tests crash when listener is null.
Targets JENKINS-40220. Extension that allows to see the RF test results in Blue Ocean.
ListViewColumn actually gets the Item, not the Job [1]. Since a Folder is not an instance of a Job, but of Item [2], it was previously "ignored" and a robot result was shown. This commit fixes this. [1] https://javadoc.jenkins.io/hudson/views/ListViewColumn.html [2] https://javadoc.jenkins.io/plugin/cloudbees-folder/com/cloudbees/hudson/plugins/folder/Folder.html
Since Workflow (Pipelines) uses Job [1] and Run [2] instead of the more concrete AbstractJob and AbstractBuild, the robot results of the last build were not shown at the project page. [1] https://github.com/jenkinsci/workflow-job-plugin/blob/30a54b1f113a269bc927f8b11a21b1276204490d/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowJob.java#L114 [2] https://github.com/jenkinsci/workflow-job-plugin/blob/87ec7897b0eedcf6a9c42f82e93726999f9596d8/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java#L133
44e3dd7
to
e9ed37a
Compare
Couldn't get the XPath test running with Jenkins' HtmlUnit. Added two additional commits regarding the usability (not related to the original PR): @Tattoo just tell me if some more actions (except removing the test force commits) are required to get it merged :) If required, I could also move the two unrelated commits to a new PR. |
It would be great to see this BlueOcean support merged. |
@bbara This looks good. Thanks for the PR! As a general guideline, I would appreciate separating different functionalities into separate PRs, but I'll let it pass this time. :) |
found a regression in this PR, which is solved by rollback to Version 2.0.1:
|
Hey @DirkRichter, |
here a sample line 35 and line 36 from output.xml:
the status element is correctly closed in line 35. it looks like the new robot plugin do no longer understand the closing tag? here the head of output.xml:
|
@DirkRichter Which Robot Framework version are you using? Could you also consider creating a new issue for this? |
robotframework==3.1.2 |
Thank you. Let us continue discussion there, instead of a closed PR :) |
Hey,
targeting JENKINS-40220.
Additionally, some small (and also optional) modernizations (using Java 8, ...) are added.
What do you think about it?
BR,
BB