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

WIP: Generate xUnit Reports for e2e tests #962

Open
wants to merge 26 commits into
base: master
Choose a base branch
from

Conversation

sawood14012
Copy link
Contributor

a Wip PR which enables generation of junit/xunit reports to connect report-portal and Quality dashboard

Copy link

openshift-ci bot commented May 3, 2024

Hi @sawood14012. Thanks for your PR.

I'm waiting for a codeready-toolchain member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ranakan19
Copy link
Contributor

/ok-to-test

Copy link

openshift-ci bot commented May 15, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sawood14012
Once this PR has been reviewed and has the lgtm label, please assign matousjobanek for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Contributor

@mfrancisc mfrancisc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking a look at this 🙏

I'm not familiar with go-junit-report but don't you need to pipe it to the go test ./... command as explained here:

go test -v 2>&1 ./... | go-junit-report -set-exit-code > report.xml

make/test.mk Outdated Show resolved Hide resolved
sawood14012 and others added 2 commits May 15, 2024 17:49
Co-authored-by: Francisc Munteanu <fmuntean@redhat.com>
@sawood14012
Copy link
Contributor Author

Thanks for taking a look at this 🙏

I'm not familiar with go-junit-report but don't you need to pipe it to the go test ./... command as explained here:

go test -v 2>&1 ./... | go-junit-report -set-exit-code > report.xml

it gets piped if you see my generate-report command and execute-tests cmd

make/test.mk Outdated Show resolved Hide resolved
make/test.mk Outdated Show resolved Hide resolved
sawood14012 and others added 2 commits May 21, 2024 12:54
Co-authored-by: Francisc Munteanu <fmuntean@redhat.com>
Copy link

sonarcloud bot commented May 23, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

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

Successfully merging this pull request may close these issues.

None yet

4 participants