hs-test: logging improvements
[vpp.git] / extras / hs-test / suite_ns_test.go
index 86d9b78..85b9091 100644 (file)
@@ -83,7 +83,9 @@ var _ = Describe("NsSuite", Ordered, ContinueOnFailure, func() {
                test := test
                pc := reflect.ValueOf(test).Pointer()
                funcValue := runtime.FuncForPC(pc)
-               It(strings.Split(funcValue.Name(), ".")[2], func(ctx SpecContext) {
+               testName := strings.Split(funcValue.Name(), ".")[2]
+               It(testName, func(ctx SpecContext) {
+                       s.log(testName + ": BEGIN")
                        test(&s)
                }, SpecTimeout(time.Minute*5))
        }
@@ -108,7 +110,9 @@ var _ = Describe("NsSuiteSolo", Ordered, ContinueOnFailure, Serial, func() {
                test := test
                pc := reflect.ValueOf(test).Pointer()
                funcValue := runtime.FuncForPC(pc)
-               It(strings.Split(funcValue.Name(), ".")[2], Label("SOLO"), func(ctx SpecContext) {
+               testName := strings.Split(funcValue.Name(), ".")[2]
+               It(testName, Label("SOLO"), func(ctx SpecContext) {
+                       s.log(testName + ": BEGIN")
                        test(&s)
                }, SpecTimeout(time.Minute*5))
        }