Comment 2 for bug 1153837

Revision history for this message
Leo Arias (elopio) wrote :

Hi Robert,

I'm writing acceptance tests for a website with selenium. Thus, the tests are slow, and we need more verbosity from the runner so you don't think they are stuck. We print a summary of the actions being executed to sys.out. I started with unittest texttestresult, and it prints the test name and the test result (ok, fail, error...) just as I want. The problem is that the results summary is printed by unittest's texttestrunner, and I'm not using it because I'm using testtools mutitestresult as I also need an XML output.

So, I found that testtools texttestresult prints the results summary and all the failures. That's better. But it doesn't print the names.

The problem seems to be that the responsibilities of a results handler are inconsistent between unittest and testtools. For me, testtools is doing the right thing, and it seemed like easier to extend the testtools one to print the names.

Maybe my scenario is not common and I just need my own runner tailored just for this case. I have it working fine at the moment, I just wanted to check if I should send you my patced texttestresult.

thanks for the answer.
pura vida.