| Issue 3: | Should addTrace() run when exception occurs? | |
| Back to list |
What steps will reproduce the problem? 1. add addTrace() to test case 2. make it fail 3. trace message is blank What is the expected output? What do you see instead? Trace message should appear in output. However, maybe it shouldn't. If the trace message is dependent upon the successfull completion of the method being tested and that fails, trace cannot then print correct results, right? Please use labels and text to provide additional information. |
I see addTrace() as a way for the developer to add comments. So, I would opt for having both addTrace('my message') _and_ capture any exception/stack info and load that into the test result object. The best of both worlds!