go-junit-report/go-junit-report.go
Joel Stemmer c9c0e1877c Write JUnit report xml
Add tests
2012-03-09 19:52:48 +01:00

23 lines
316 B
Go

package main
import (
"fmt"
"os"
)
func main() {
// Read input
report, err := Parse(os.Stdin)
if err != nil {
fmt.Printf("Error reading input: %s\n", err)
os.Exit(1)
}
// Write xml
err = JUnitReportXML(report, os.Stdout)
if err != nil {
fmt.Printf("Error writing XML: %s\n", err)
os.Exit(1)
}
}