Add explicit start and end to JSON encoded test data for easier parsing

pull/6/head
gmarek 2016-01-13 15:50:08 +01:00
parent e1a71fefaa
commit ba8efbddea
1 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,7 @@ package e2e
import (
"bytes"
"fmt"
"reflect"
"strings"
"sync"
"time"
@ -185,7 +186,9 @@ func (f *Framework) afterEach() {
}
case "json":
for i := range summaries {
Logf(summaries[i].PrintJSON())
typeName := reflect.TypeOf(summaries[i]).String()
Logf("%v JSON\n%v", typeName[strings.LastIndex(typeName, ".")+1:len(typeName)], summaries[i].PrintJSON())
Logf("Finished")
}
default:
Logf("Unknown ouptut type: %v. Skipping.", printType)