Closed goober closed 2 years ago
AFAIK JUnit format has some directives for containing an error message (exception) separated from failure messages.
Hi, any updates on this?
@galshi No updates from my side unfortunately. However, we went forward with switching to kubeconform instead to get this functionality.
This pull request aims to add support for outputing the result in a junit xml compatible format and hence fix #289
It is currently heavily inspired by the implementation done in kubeconform and are still a work in progress. However, I wanted to open a draft to get the discussion started.
It can be tested by adding the
-o junit
to the kubeval commandI needed to change the error log output to print to stderr to not poison the resulting xml when piping stdout to a file. However, it would be preferable to add the errors to the result and let the outputManager decide how to print those errors as well.