-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add suite variant for benchmarks #495
base: master
Are you sure you want to change the base?
Conversation
One thing I'm not sure about if we want to reuse the |
This repo has been forked. Please feel free to open a new PR here: https://github.com/test-go/testify |
suite.SetT(parentT) | ||
}() | ||
|
||
method.Func.Call([]reflect.Value{reflect.ValueOf(suite)}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to measure the time of the function. You should to add b.RestartTim and then b.startTime and after the calling b.StopTime. Otherwise the result would be wrong
I wanted setup, teardown and easy access to assert/require for benchmarks i'm working on. I think it might be useful for other people as well.