simple testcase names
This commit is contained in:
parent
74383ddcc0
commit
09fd2cb2a4
@ -7,6 +7,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (t *Test) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
func (t *Test) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||||
@ -28,8 +29,9 @@ func (t *Test) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
|||||||
Message: "failed",
|
Message: "failed",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
parts := strings.Split(t.Name, "/")
|
||||||
tc := Testcase{
|
tc := Testcase{
|
||||||
Name: t.Name,
|
Name: parts[len(parts)-1],
|
||||||
// parent class name
|
// parent class name
|
||||||
Classname: classname,
|
Classname: classname,
|
||||||
Time: t.Time,
|
Time: t.Time,
|
||||||
|
Loading…
Reference in New Issue
Block a user