Skip to content
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

Jest support? #6

Closed
ypicard opened this issue Nov 10, 2021 · 6 comments
Closed

Jest support? #6

ypicard opened this issue Nov 10, 2021 · 6 comments

Comments

@ypicard
Copy link

ypicard commented Nov 10, 2021

Hi,

Is there any documentation on how to integrate those features with a NodeJS Jest test suite? If support is already provided, where is the documentation?

Thank you!

@bitcoder
Copy link
Collaborator

Hi @ypicard,
well, these are more Xray support kinda of questions but let me try to help.
Basically what you have to do is just make jest output a JUnit XML report.

For Xray Cloud, you can have a look at some tutorials:

For Xray on Jira server/datacenter, you can also find similar tutorials.
https://docs.getxray.app/display/XRAY/Testing+web+applications+using+Playwright
https://docs.getxray.app/display/XRAY/Headless+testing+web+applications+using+Jest+and+Puppeteer+in+JavaScript

Regards
Sergio

@bitcoder
Copy link
Collaborator

closing this as it is not related to this repository.

@bitcoder
Copy link
Collaborator

I think that now I've understood your question better @ypicard ; anyway, for Javascript and Jest there's no equivalent stuff (at least official). I've made a PR on the mocha-junit-reporter but I haven't got any feedback the team of that project unfortunately. I've made some PoC code with jest and that mocha-junit-reporter branch and I was able to achieve a working solution, but it's not offical nor it's final. I hope to have time to make it available later on but this is also dependent on the mocha-junit-reporter issue; it would be great if you could go there and vote and leave a comment so perhaps the team answers.

@ypicard
Copy link
Author

ypicard commented Nov 13, 2021

Just did. This would indeed be perfect. Perhaps as a hint for an early improvement: possibility to link multiple requirements to a single test? 😇

Thanks!

@bitcoder
Copy link
Collaborator

@ypicard thanks! That's an interesting idea and I think it can be a viable possibility. I need to work with the upstream project to get that working... but lets keep the discussion there as I think it makes more sense :)

@ypicard
Copy link
Author

ypicard commented Nov 15, 2021

Indeed.
We currently have integration tests that test multiple requirements at once. If we were to use this project, it would be greatly appreciated if we could link multiple issues to a single test.

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

No branches or pull requests

2 participants