pombreda / gaeunit

Automatically exported from code.google.com/p/gaeunit
0 stars 0 forks source link

non-200 HTTP status causes failure details of earlier tests to be overwritten in browser. #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Subclass unittest.TestCase
2. Write multiple test_ methods.
3. If a later test_ results in a non-200 HTTP status, the responseText 
(possibly empty) will overwrite any prior failure details.

What is the expected output? What do you see instead?
Prior failure details should still be viewable.

What version of the product are you using? On what operating system?
http://gaeunit.googlecode.com/files/gaeunit-2.0a_for_django.zip

Please provide any additional information below.
Here's a fix for gaeunit.py:
// OLD:             document.getElementById("errorarea").innerHTML = 
xmlHttp.responseText;
// NEW(kjh 2009-08-16 1736; do not wipeout existing error details in 
errorarea):
                    document.getElementById("errorarea").innerHTML += 
xmlHttp.responseText;

Original issue reported on code.google.com by kenneth....@gmail.com on 17 Aug 2009 at 6:44