Takes a test result object and converts it into TAP output