':type args: TestConfig'

def write_junit(self, args):

    title = self.format_title()
    output = self.format_block()
    test_case = self.junit.TestCase(classname=self.command, name=self.name)
    test_case.add_failure_info(message=title, output=('\n%s' % output))
    self.save_junit(args, test_case)
