JUnitXmlFormatter icon indicating copy to clipboard operation
JUnitXmlFormatter copied to clipboard

Great Project - Would like use Released Version

Open pjreid opened this issue 10 years ago • 2 comments

Hi Barry,

I am making use of this project in a new project of my own.

To make the build process for my project easier it would be nice to have a released version which I could add as a dependency. Have you any plans to publish a release?

Thanks,

Paul

pjreid avatar Nov 16 '15 14:11 pjreid

I have exactly the same question. I spent quite some time looking for a ready-to-use solution for generating JUnit XML without relying on ANT or something similar, because we have our own building tool. It really was hard to find, but finally I ended up on this GitHub project which did the work for me (Ant's XML generating -> RunListener XML generating w/o dependencies on ANT).

However what we are missing is a shippable JAR. For now I'm building your code and assembling it in a separate JAR myself.

Thanks for your work. I'll try it now.

Update: I can confirm, this is working great. I can use the output XML in Jenkins. I did provide my own "Runner" though, because if I were to use the default one (Runner.java), I have to specify all my test classes explicitly on the command line. This is not something that we want: for every new class, we need to modify the (batch) code that is executing your tool. So I made my own runner, which takes a single reference to a new interface called "TestClassProvider", and the implementation of this class returns a list of test classes to run. The implementation can then be part of the project, so everyone can modify it and push it to the versioning system.

I compiled and jarred your classes and didn't change anything whatsoever to your original classes. This means that the package structure is still intact as well.

T1mmos avatar Feb 28 '17 12:02 T1mmos

@T1mmos would you mind uploading your JARs to maven central?

gdecaso avatar Mar 07 '17 14:03 gdecaso