hs-test: logging improvements
[vpp.git] / extras / hs-test / suite_nginx_test.go
index 2d1caf1..c559496 100644 (file)
@@ -98,7 +98,9 @@ var _ = Describe("NginxSuite", 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))
        }
@@ -118,11 +120,14 @@ var _ = Describe("NginxSuiteSolo", Ordered, ContinueOnFailure, Serial, func() {
        AfterEach(func() {
                s.TearDownTest()
        })
+
        for _, test := range nginxSoloTests {
                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))
        }