Skip individual tests intstead of whole suite

This commit is contained in:
2018-07-09 00:48:38 +02:00
parent 55fcca661e
commit 2070776cf7
5 changed files with 69 additions and 30 deletions
+13
View File
@@ -0,0 +1,13 @@
package context2
import (
"context"
"testing"
"github.com/localhots/gobelt/log"
)
// TestContext returns a new context with test name added.
func TestContext(t *testing.T) context.Context {
return log.ContextWithFields(context.Background(), log.F{"test": t.Name()})
}