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

Add ability to export and output the data in xml junit format #4285

Closed
DevAmirreza opened this issue Aug 21, 2023 · 5 comments
Closed

Add ability to export and output the data in xml junit format #4285

DevAmirreza opened this issue Aug 21, 2023 · 5 comments
Labels
feature-request 🚀 New feature request

Comments

@DevAmirreza
Copy link

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
As a DevOps I would like to be able to export the output of executions in xml junit format. Currently able to out put json, pretty.
In order to be able to integrate the gitlab test report. we should have the ability to be able to generate a test report in xml jnuit format which makes it easier to integrate with gitlab test report feature.

Please see the doc below:
https://docs.gitlab.com/ee/ci/testing/unit_test_report_examples.html

It looks like every other testing framework in other languages have this ability.

Describe alternatives you've considered
exporting to json and generating a xml via python script

Additional context
-o xml

@DevAmirreza DevAmirreza added the feature-request 🚀 New feature request label Aug 21, 2023
@TheBrunoLopes
Copy link
Member

Hey @DevAmirreza
Thank you for your request.
Would you mind sharing which testing tools are you using ? or which Testkube executors ?
Would this work for you if the junit xml report is available as an artifact ?

@DevAmirreza
Copy link
Author

Hi @TheBrunoLopes , currently just using the default curl-executor but we are planning to develop our own custom executor to test Kuberentes APIs resources.

Currently we don't consume artifacts as we don't have a S3 bucket set up. In future we plan to set a s3 instances and get the artifacts but not at the moment.

@TheBrunoLopes
Copy link
Member

Thanks for the info.
Our current way of returning junit.xml report is by allowing the users to retrieve them as artifacts.
if you use a custom executor, you can also easily configure this. https://docs.testkube.io/test-types/container-executor/#collecting-test-artifacts

Would this solution work for you ?

ps: regarding the storage of artifacts. you can always have a go at using https://cloud.testkube.io/ were you don't have to worry about storing the artifacts.

@vsukhin vsukhin added this to Testkube Aug 21, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New in Testkube Aug 21, 2023
@vsukhin
Copy link
Collaborator

vsukhin commented Aug 22, 2023

we have similar issue #4120. might be we need to produce junit reports for all tests by default

@TheBrunoLopes
Copy link
Member

Closing this issue, since it seems like the proposed solution currently works.

@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in Testkube Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request 🚀 New feature request
Projects
Status: Done
Development

No branches or pull requests

3 participants