Skip to content

codeclou/java-junit-xml-merger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-junit-xml-merger

Merges multiple Junit XML files into a single testsuites XML file.


 

Is this for me?

You have multiple XML files that look like this:

<?xml version="1.0" encoding="UTF-8" ?>
<testsuite tests="23" failures="0" name="foo.BarUnitTest" time="4.20" errors="0" skipped="0">
  <!-- foo -->
</testsuite>

And you want a single file that looks like this:

<?xml version="1.0" encoding="UTF-8" ?>
<testsuites name="My Suite" time="6.60" tests="26" failures="0">
  <testsuite tests="23" failures="0" name="foo.BarUnitTest" time="4.20" errors="0" skipped="0">
    <!-- foo -->
  </testsuite>
  <testsuite tests="3" failures="0" name="bar.FooUnitTest" time="2.40" errors="0" skipped="0">
    <!-- bar -->
  </testsuite>
</testsuites>

then this is for you


 

Usage

With folder reports containing multiple *.xml files in junit-xml format. A combined result will be written to junit-all.xml

# INSTALL
curl -o java-junit-xml-merger-0.0.1-fatjar.jar https://????
# RUN
java -jar java-junit-xml-merger-0.0.1-fatjar.jar \
     -i=reports/ \
     -o=junit-all.xml \
     -s=My Suite

 

License

MIT © Bernhard Grünewaldt

About

Merges multiple JUnit XML files into a single testsuites XML file.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages