Generating Kyua test result output in JUnit XML format for Jenkins integration?
jmmv at meroh.net
Sun Mar 16 04:39:06 UTC 2014
On Tue, Mar 4, 2014 at 6:27 AM, Craig Rodrigues <rodrigc at freebsd.org> wrote:
> On Sun, Mar 2, 2014 at 12:26 PM, Julio Merino <jmmv at meroh.net> wrote:
>> (As I mentioned in the other thread) this is relatively easy to do and
>> we have enough time to get it going by May 15th.
>> The path of least resistance to get this out for now is:
>> 1. Reintroduce support for --output=format:path to 'report' so that
>> 'report' can output more than one format. The existence of
>> 'report-html' as a separate command is a pretty ugly hack.
>> 2. Split out the console-specific formatting from cmd_report.cpp into
>> a separate module to clearly expose what is part of the formatting and
>> what is not. Adding JUnit XML support should not require changes to
>> other code.
Alright; these two are now done in github.
The code is not very pretty (OK, not pretty at all) but it should now
be possible to relatively easily bolt on JUnit XML formatting code.
Still have to integrate HTML output generation into the new code
structure to ensure that this is true.
>> 3. Add a new module with the JUnit XML formatting code.
> I think that these are all fine goals.
> I might be able to help with 3.
If you want to try that's cool, but if you can provide me some sample
outputs and a pointer to the schema I will do this sometime soon.
> The easier we make it to customize Kyua's output formats, the easier it will
> to get more people to use Kyua.
Indeed. But let's focus on BSDCan for now ;-)
More information about the freebsd-testing