Yelp/Testify — pull request #115 by mrtyler (2012-10-17 18:05:06+00:00)
Title: Troscoe 35978 exceptions in class setup teardown

This is a partially complete implementation that reports on failures in class_teardown methods. (Previously, Testify would simply lose these failures and not report them.)

Reporting works in TextLogger and SqlReporter. Problems during class_teardown are reported as a new test result. This can be a little confusing ("This TestCase only has one test method. How am I getting two failures?!") but is consistent with how unittest2 and nose handle this situation.

This version does not yet work with buildbot because HttpReporter needs to be modified. This is taking longer than I'd hoped (and I'm leaving for vacation soon), so I wanted to start getting the other changes reviewed.

I tested this version on bb5. It doesn't quite do the right thing because of how HttpReporter works, but class_teardown problems are at least reported in the stdio output, which is better than what we have today, so it may be worth deploying this version without the HttpReporter fixes.