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 ( import (
"bytes" "bytes"
"fmt" "fmt"
"reflect"
"strings" "strings"
"sync" "sync"
"time" "time"
@ -185,7 +186,9 @@ func (f *Framework) afterEach() {
} }
case "json": case "json":
for i := range summaries { 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: default:
Logf("Unknown ouptut type: %v. Skipping.", printType) Logf("Unknown ouptut type: %v. Skipping.", printType)