JUnit Formatter to provide test results for Jenkins#42
JUnit Formatter to provide test results for Jenkins#42arifken wants to merge 7 commits intobendyworks:masterfrom
Conversation
…e of a test case context
…th test cases not reporting duration
|
Gonna get a little pedantic here... sorry in advance. I don't think this qualifies as a formatter in the current sense within bwoken. Formatters basically filter instruments(1)'s output into something else that gets sent to stdout. This JUnit formatter, OTOH, has the main function of writing to a different file. To me, that means it's like a formatter, but not exactly a formatter. What is it? I dunno... maybe a diverter? It kinda acts like tee(1) in that sense. Anyway, I see two ways to go about this:
Thoughts? |
|
I like the second option. I agree, I think there needs to be a separate mechanism aside from formatters (maybe we call these "reporters"?) that can be added as extensions to bwoken. These tools should generate output files that can be read by various CI tools. If you like, I can take a stab at implementing an interface and base class "reporter," and then add this module as "JUnitReporter" |
|
arifken, do you have a repo with this built on top of the 2.0 release. i'm looking to run my test in Jenkins too. Thanks |
This branch includes a new formatter class to output XML that can be consumed by Jenkins and shown in the "test results" graph.
In order to do this, I also had to make a small change to Formatter.on, so that the instance of the formatter is passed to the block.
I also added a spec for the new JUnitFormatter
-Andy