mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-04-05 13:08:07 -05:00
23 lines
316 B
Go
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)
|
|
}
|
|
}
|