Skip to content

Is there any way to implement screenshots in combination with Junit for GitLab? #208

Answered by palmerj3
GhostLyrics asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for submitting an issue!

If the syntax requires the use of system-out then that raises a few issues:

  1. Jest reporters don't have reliable access to anything sent to stdout/stderr during a test run so you couldn't simply have jest output that attachment syntax and expect jest-junit to pick it up and create that system-out tag.
  2. Right now we only offer a way to add testsuite properties dynamically, but not make changes to testcase or add other tags.

So the only way I can think to implement this would be to use jest-junit as-is and then have a posttest script that looks for screenshots and modifies junit.xml to include the tags.

Or if you wanted jest-junit to do it then we'd either nee…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@CMCDragonkai
Comment options

Answer selected by palmerj3
Comment options

You must be logged in to vote
4 replies
@CMCDragonkai
Comment options

@CMCDragonkai
Comment options

@palmerj3
Comment options

@CMCDragonkai
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants