Skip to content

nhudacin/xunit-converter-task

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xunit-converter-task

Thoughtworks Go plugin to convert test reports to XUnit format.

##Supported Formats:

  • Nose
  • JSUnit
  • MsTest

##Installation:

  1. Download jar from releases & place it in <go-server-location>/plugins/external & restart Go Server

  2. The converter will now be available in the task selector drop down menu

Alt text

##Example:

Add and configure new task "XUnit Converter" to any job where tests are being run and outputted in any of the supported formats:

Alt text

###Converter Type The type of test to try and convert from

###Input Directory Path (relative to pipeline) where the report files are located. The converter task will look for files in this directory with an extension of .xml for Nose & JSUnit tests and .trx for MsTests

Alt text

###Output Directory The destination folder to place the converted tests. This folder will get created during the run. I usually place the new "converted" directory in the same folder as my input directory.

Alt text

Notice that the output file name is the same name as the input file, including the extension ".trx"

Make sure you select 'RunIf Conditions' to 'Any', so the plugin converts reports even if tests fail!

Add the ouput directory of plugin as 'Test Artifact' in Artifacts tab

Alt text

##Project Contribution

###Prerequisites

  • JavaIDE - I'm using IntellJ IDEA (14.1.2)
  • JavaJDK version 1.7 +
  • JAVA_HOME environment variable correctly setup
  • Maven - I'm using Maven 3.3.3
  • xunit-converter
  • xunit-converter & xunit-converter-task repos must be in the same directory
cd xunit-converter
mvn clean install -DskipTests
cd ..
cd xunit-converter-task
mvn clean install -DskipTests

About

Thoughtworks Go plugin to convert test reports to XUnit format

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 83.4%
  • HTML 16.6%