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

Bug: Junit output shows top-level error count, but not error-count within a test suite #246

Closed
jcmcken opened this issue Nov 20, 2023 · 1 comment · Fixed by #253
Closed

Comments

@jcmcken
Copy link

jcmcken commented Nov 20, 2023

E.g. it shows output like:

<testsuites name="kubeconform" ... errors="1">
  <testsuite ... errors="0">
    <testcase name="foo" ...>
      <error message="could not find schema for Ingress"></error>
    </testcase>
  </testsuite>
</testsuites>

The individual test case sees the error message, but it's not counted in the test suite summary (errors="0"), and it is counted at the very top level (errors="1").

Running kubeconform like this:

kubeconform -schema-location /path/to/local/dir -strict -summary -output junit -verbose /path/to/dir
@yannh
Copy link
Owner

yannh commented Dec 24, 2023

Hi @jcmcken , you are correct. I have opened a branch that should fix the behaviour. Expect a merge and a release in the next few weeks. Thanks a lot for reporting the issue!

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

Successfully merging a pull request may close this issue.

2 participants