The traceback is added conditionally as a comment if a traceback already exists while parsing a new line. This causes the code to not get hit if there is only one test case, or the last one fails.
A quick workaround is to have a dummy test that executes last.