@@ -400,10 +400,10 @@ func TestEnv_Test(t *testing.T) {
400
400
setup : func (t * testing.T , ctx context.Context ) []string {
401
401
env := newTestEnv ()
402
402
val := []string {}
403
- env .BeforeEachFeature (func (ctx context.Context , _ * envconf.Config , info features.Feature ) (context.Context , error ) {
403
+ env .BeforeEachFeature (func (ctx context.Context , _ * envconf.Config , _ * testing. T , info features.Feature ) (context.Context , error ) {
404
404
val = append (val , "before-each-feature" )
405
405
return ctx , nil
406
- }).AfterEachFeature (func (ctx context.Context , _ * envconf.Config , info features.Feature ) (context.Context , error ) {
406
+ }).AfterEachFeature (func (ctx context.Context , _ * envconf.Config , _ * testing. T , info features.Feature ) (context.Context , error ) {
407
407
val = append (val , "after-each-feature" )
408
408
return ctx , nil
409
409
})
@@ -433,7 +433,7 @@ func TestEnv_Test(t *testing.T) {
433
433
setup : func (t * testing.T , ctx context.Context ) []string {
434
434
env := newTestEnv ()
435
435
val := []string {}
436
- env .BeforeEachFeature (func (ctx context.Context , _ * envconf.Config , info features.Feature ) (context.Context , error ) {
436
+ env .BeforeEachFeature (func (ctx context.Context , _ * envconf.Config , _ * testing. T , info features.Feature ) (context.Context , error ) {
437
437
val = append (val , "before-each-feature" )
438
438
t .Logf ("%#v, len(steps)=%v step[0].Name: %v\n " , info , len (info .Steps ()), info .Steps ()[0 ].Name ())
439
439
@@ -452,7 +452,7 @@ func TestEnv_Test(t *testing.T) {
452
452
labelMap := info .Labels ()
453
453
labelMap ["foo" ] = "bar"
454
454
return ctx , nil
455
- }).AfterEachFeature (func (ctx context.Context , _ * envconf.Config , info features.Feature ) (context.Context , error ) {
455
+ }).AfterEachFeature (func (ctx context.Context , _ * envconf.Config , _ * testing. T , info features.Feature ) (context.Context , error ) {
456
456
val = append (val , "after-each-feature" )
457
457
t .Logf ("%#v, len(steps)=%v\n " , info , len (info .Steps ()))
458
458
if info .Labels ()["foo" ] == "bar" {
@@ -549,13 +549,13 @@ func TestTestEnv_TestInParallel(t *testing.T) {
549
549
return ctx , nil
550
550
})
551
551
552
- env .BeforeEachFeature (func (ctx context.Context , config * envconf.Config , feature types.Feature ) (context.Context , error ) {
552
+ env .BeforeEachFeature (func (ctx context.Context , config * envconf.Config , _ * testing. T , feature types.Feature ) (context.Context , error ) {
553
553
t .Logf ("Running before each feature for feature %s" , feature .Name ())
554
554
beforeFeatureCount ++
555
555
return ctx , nil
556
556
})
557
557
558
- env .AfterEachFeature (func (ctx context.Context , config * envconf.Config , feature types.Feature ) (context.Context , error ) {
558
+ env .AfterEachFeature (func (ctx context.Context , config * envconf.Config , _ * testing. T , feature types.Feature ) (context.Context , error ) {
559
559
t .Logf ("Running after each feature for feature %s" , feature .Name ())
560
560
afterFeatureCount ++
561
561
return ctx , nil
0 commit comments