added time
This commit is contained in:
parent
09fd2cb2a4
commit
7cf5827f22
@ -5,6 +5,7 @@ import (
|
||||
"encoding/json"
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
@ -29,6 +30,7 @@ func (t *Test) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
Message: "failed",
|
||||
}
|
||||
}
|
||||
log.Printf("TIME %f", t.Time)
|
||||
parts := strings.Split(t.Name, "/")
|
||||
tc := Testcase{
|
||||
Name: parts[len(parts)-1],
|
||||
|
@ -140,6 +140,8 @@ func (testsuites *Testsuites) Pass(t time.Time, pkg string, test string, elapsed
|
||||
if testsuites.getRootSuite(t, pkg+"/"+test, false) != nil {
|
||||
return
|
||||
}
|
||||
tc := testsuites.getTest(t, pkg, test)
|
||||
tc.Time = elapsed
|
||||
}
|
||||
|
||||
func (testsuites *Testsuites) Bench(t time.Time, pkg string, test string, output string, elapsed float64) {
|
||||
|
Loading…
Reference in New Issue
Block a user