Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion suite/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
)

var matchMethod = flag.String("testify.m", "", "regular expression to select tests of the testify suite to run")
var repeatItem = flag.Uint("testify.c", 1, "used to repeat each test multiple times without rerunning Setup/TearDownSuite")

// Suite is a basic testing suite with methods for storing and
// retrieving the current *testing.T context.
Expand Down Expand Up @@ -192,7 +193,10 @@ func Run(t *testing.T, suite TestingSuite) {
method.Func.Call([]reflect.Value{reflect.ValueOf(suite)})
},
}
tests = append(tests, test)

for i := uint(0); i < *repeatItem; i++ {
tests = append(tests, test)
}
}

if len(tests) == 0 {
Expand Down