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

Generate xUnit compatible test results for unit and integration tests #1724

Merged

Conversation

artemnikitin
Copy link
Member

This PR adds support for generating xUnit compatible XML with test results from go test for unit and integration tests. It using https://github.com/gotestyourself/gotestsum for generating XML.

Part of #1229

@artemnikitin artemnikitin added :ci Things related to Continuous Integration, automation and releases v1.0.0-beta1 labels Sep 12, 2019
@artemnikitin
Copy link
Member Author

@david-kow
Copy link
Contributor

Nice. Is there a way to browse through result history for a particular test?

Copy link
Contributor

@david-kow david-kow left a comment

Choose a reason for hiding this comment

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

LGTM

@artemnikitin
Copy link
Member Author

@david-kow I'm not sure if it's possible with Jenkins, but there is another issue #1098 for looking into possibility of using existed ES instance for collecting and viewing test results. With ES it should be possible. I think there is actually a dashboard which showing tests which fails most often, but it's for main Cloud repo only

@artemnikitin artemnikitin merged commit e4297e0 into elastic:master Sep 13, 2019
@artemnikitin artemnikitin deleted the 1229-xunit-compatible-output branch September 13, 2019 11:54
pebrc pushed a commit to pebrc/cloud-on-k8s that referenced this pull request Sep 15, 2019
…elastic#1724)

* Add xUnit compatible output for unit and integration tests

* Add example of output to test on Jenkins

* Create integration-tests.xml

* Update make target for CI

* Add xUnit compatible test reports to PR job

* Revert "Create integration-tests.xml"

This reverts commit 313d8a6.

* Revert "Add example of output to test on Jenkins"

This reverts commit bdd7664.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:ci Things related to Continuous Integration, automation and releases v1.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants