-
Notifications
You must be signed in to change notification settings - Fork 67
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
testify doesn't include class_setup/teardown in "Total test time" #18
Comments
Where would you like to see this time reported? |
I'd expect "Total test time" to include class setup and teardown. In verbose mode, I'd expect to see a line like:
|
Maybe if we listed the class setup time like:
I think I didn't understand what you meant by "Total test time". If that's truely just the sum of all the reported test method times then that definitely sounds like a bug. |
Yup, that's exactly the format I'd like. :) Yeah, it looks like class setup/teardown times are not included in total test time. |
Oh, except that you should still say Something like:
might be a little better, since it doesn't make |
Oh yeah, just git confused by this as well ; 6s test taking almost 3min.
|
I've got a branch that causes class_setup/class_teardown to get reported to the reporting plugins. (#75) I suppose I could go ahead and make the default reporter spit out this info. |
#116 adds callback hooks for class_setup and class_teardown time. (This code is cherry picked from one of @EvanKrall's branches, possibly #75). That should make it quite a bit easier to implement the requested feature. |
A lot of time spent in Yelp tests is not the actual tests, but setting up the users/reviews/etc. to run the tests on. Currently Testify doesn't show timing information for
@class_setup
and@class_teardown
methods, or include them in the "Total test time".These tend to be the most expensive methods (otherwise we'd just use
@setup
or@teardown
), so it's kind of a liability not to know just how expensive they are.The text was updated successfully, but these errors were encountered: