Skip individual tests intstead of whole suite
This commit is contained in:
@@ -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()})
|
||||
}
|
||||
Reference in New Issue
Block a user