Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pelletier/go2xunit
Convert "go test" output to xunit compatible. Fork of https://bitbucket.org/tebeka/go2xunit/
https://github.com/pelletier/go2xunit
Last synced: 25 days ago
JSON representation
Convert "go test" output to xunit compatible. Fork of https://bitbucket.org/tebeka/go2xunit/
- Host: GitHub
- URL: https://github.com/pelletier/go2xunit
- Owner: pelletier
- License: mit
- Created: 2012-07-19T08:48:32.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-07-22T18:31:11.000Z (over 12 years ago)
- Last Synced: 2024-06-19T19:42:19.617Z (5 months ago)
- Language: Go
- Size: 111 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: ChangeLog
- License: LICENSE.txt
Awesome Lists containing this project
README
==============
go2xunit 0.1.0
==============Converts `go test -v` output to xunit compatible XML output.
Install
=======
`go install bitbucket.org/tebeka/go2xunit`Usage
=====
By default `go2xunit` reads data from standard input and emits XML to standard
output. However you can use `-input` and `-output` flags to change this.The `-fail` switch will cause `go2xunit` to exit with non zero status if there
are failed tests.::
go test -v | go2xunit -output tests.xml
Here's an example script (`run-tests.sh`) that can be used with Jenkins_.
::
#!/bin/bashexport GOPATH=$(dirname $(dirname $PWD))
outfile=gotest.outgo test -v | tee $outfile
go2xunit -fail -input $outfile -output tests.xml.. _Jenkins: http://jenkins-ci.org/
Contact
=======
Miki TebekaBug reports go here_.
.. _here: https://bitbucket.org/tebeka/go2xunit/issues?status=new&status=open