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

Support JUnit output format #373

Closed
iwata opened this issue Jan 24, 2019 · 7 comments
Closed

Support JUnit output format #373

iwata opened this issue Jan 24, 2019 · 7 comments

Comments

@iwata
Copy link

iwata commented Jan 24, 2019

I'm using CircleCI.
It can show Test Summary section.
But in order to display the summary, it is necessary to output in JUnit format.
Ref. Configuring CircleCI - CircleCI

@jirfag
Copy link
Member

jirfag commented Jan 26, 2019

hi!
pull requests are welcome but I suggest using code climate or golangci.com or hound ci or similar: they allow to see linters warnings inline like a code review

@sagikazarmark
Copy link

@iwata what exactly would you like golangci to output in a JUnit file? golangci does not execute tests. You could use gotestsum for that: https://github.com/gotestyourself/gotestsum

@iwata
Copy link
Author

iwata commented Jan 30, 2019

golangci does not execute tests.

I know.
I want to output the result of this linter in JUnit format looks like ESLint.
https://circleci.com/docs/2.0/collect-test-data/#eslint
https://eslint.org/docs/user-guide/formatters/#junit

@howardjohn
Copy link

I think this is added in 1.17?

@vovapi
Copy link
Contributor

vovapi commented Sep 11, 2019

@howardjohn yeah, seems to be true. It seems that JUnit format support was added in #557 and fixed in #632

@matoous
Copy link
Contributor

matoous commented Sep 25, 2019

True. Closing ✅

@matoous matoous closed this as completed Sep 25, 2019
@ced42
Copy link
Contributor

ced42 commented May 6, 2020

Hello,
It seems that the generated output is not valid, according to the Jenkins Junit XSD (https://github.com/jenkinsci/xunit-plugin/blob/master/src/main/resources/org/jenkinsci/plugins/xunit/types/model/xsd/junit-10.xsd).
For example, the attributes tests, failures and errors are missing.

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

7 participants