@@ -13,20 +13,26 @@ import (
13
13
)
14
14
15
15
type Results struct {
16
- Tests int `json:"tests"`
17
- Failures int `json:"failures"`
18
- Time string `json:"time"`
19
- Name string `json:"name"`
20
- Testcase []struct {
21
- Classname string `json:"classname"`
22
- Name string `json:"name"`
23
- Time string `json:"time"`
24
- Assertions int `json:"assertions"`
25
- Failure struct {
26
- Text string `json:"text"`
27
- Message string `json:"message"`
28
- } `json:"failure,omitempty"`
29
- } `json:"testcase"`
16
+ Name string `json:"name"`
17
+ Tests int `json:"tests"`
18
+ Failures int `json:"failures"`
19
+ Time string `json:"time"`
20
+ Testsuite []struct {
21
+ Tests int `json:"tests"`
22
+ Failures int `json:"failures"`
23
+ Time string `json:"time"`
24
+ Name string `json:"name"`
25
+ Testcase []struct {
26
+ Classname string `json:"classname"`
27
+ Name string `json:"name"`
28
+ Time string `json:"time"`
29
+ Assertions int `json:"assertions"`
30
+ Failure struct {
31
+ Text string `json:"text"`
32
+ Message string `json:"message"`
33
+ } `json:"failure"`
34
+ } `json:"testcase"`
35
+ } `json:"testsuite"`
30
36
}
31
37
32
38
func RunTest (meshConfig ServiceMesh , annotations , labels map [string ]string ) Results {
0 commit comments