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

Add content to xUnit reporter  #2

@christian-bromann

Description

@christian-bromann

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 ;) ).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions