Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Add content to xUnit reporter #2

Open
christian-bromann opened this issue Nov 17, 2015 · 5 comments
Open

Add content to xUnit reporter #2

christian-bromann opened this issue Nov 17, 2015 · 5 comments

Comments

@christian-bromann
Copy link
Contributor

proposed by @SchwaFa webdriverio/webdriverio#670

Is it somehow possible to add something to the xUnit report?

I'm trying to link the screenshots (which I take in the expectationResultHandler of Jasmine) in the test report in Jenkins.
Therefore, I found this nice little Jenkins Plugin:
https://wiki.jenkins-ci.org/display/JENKINS/JUnit+Attachments+Plugin

It reads specific lines in the system-out section of the XML report to identify and add files to the Jenkins test result page.
But unfortunately, I can't just add such a line ("[[ATTACHMENT|/path/to/file]]") to the XML report and console.log ist not enough.

Where do the lines in the <system-out...> element come from? There are only webdriver logs in there. It would be nice to have the possibility to add everything that is printed using console.log().

The plain Jenkins JUnit test report is not that helpful without screenshots.

(Maybe a nice HTML reporter would also solve this ;) ).

@christian-bromann
Copy link
Contributor Author

obsolete

@goatsy
Copy link

goatsy commented Nov 22, 2017

Hey, sorry for bumping this old thread. I just want to understand why this is marked as obsolete.

Is there a possibility to access <system-out...> or any other best practice how to embed screenshots in JUnit Reports or links?

Thank you

@goatsy
Copy link

goatsy commented Feb 13, 2018

@christian-bromann Can you please give an update to this? Why has this ticket been closed?

@oroce
Copy link

oroce commented Jun 7, 2018

I guess the biggest blocker right now the wdio-junit-reporter's depedency, the junit-report-builder. Recently they added support for attachments but still you cannot add any kind of metadata.

@christian-bromann
Copy link
Contributor Author

Happy to review PRs, I don't have the capacity working on this as I am busy getting the new v5 out

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants