compiled test's output have no result line, fill "package name" with flag -package-name , and fill "time" with sum of individual tests' time.

This commit is contained in:
Tachikoma
2014-12-22 21:53:08 +08:00
parent 18ee6df2f2
commit 27383b3a74
2 changed files with 23 additions and 3 deletions

View File

@ -7,16 +7,18 @@ import (
)
var noXmlHeader bool
var packageName string
func init() {
flag.BoolVar(&noXmlHeader, "no-xml-header", false, "do not print xml header")
flag.StringVar(&packageName, "package-name", "", "specify a package name (compiled test have no package name in output)")
}
func main() {
flag.Parse()
// Read input
report, err := Parse(os.Stdin)
report, err := Parse(os.Stdin, packageName)
if err != nil {
fmt.Printf("Error reading input: %s\n", err)
os.Exit(1)