equal
deleted
inserted
replaced
177 # |
177 # |
178 # A simple example of writing a text file with a test result summary. It is |
178 # A simple example of writing a text file with a test result summary. It is |
179 # expected that this output will be fine for developers looking for problems. |
179 # expected that this output will be fine for developers looking for problems. |
180 # |
180 # |
181 def node_to_text (test, f): |
181 def node_to_text (test, f): |
182 (result, name, time) = read_test(test) |
182 (result, name, time_real) = read_test(test) |
183 output = "%s: Test Suite \"%s\" (%s)\n" % (result, name, time_real) |
183 output = "%s: Test Suite \"%s\" (%s)\n" % (result, name, time_real) |
184 f.write(output) |
184 f.write(output) |
185 for details in test.findall('FailureDetails'): |
185 for details in test.findall('FailureDetails'): |
186 f.write(" Details:\n") |
186 f.write(" Details:\n") |
187 f.write(" Message: %s\n" % details.find('Message').text) |
187 f.write(" Message: %s\n" % details.find('Message').text) |