code: def addFailure(self, test, err, capt=None, tbinfo=None):
          
          self.__insert_test_result(constants.State.FAILURE, test, err)
docs: After a test failure, we want to record testcase run information.