def tap(registry, xml_parent, data):
 tap = XML.SubElement(xml_parent, 'org.tap4j.plugin.TapPublisher')
 tap.set('plugin', 'tap')
 mappings = [('results', 'testResults', None), ('fail-if-no-results', 'failIfNoResults', False), ('failed-tests-mark-build-as-failure', 'failedTestsMarkBuildAsFailure', False), ('output-tap-to-console', 'outputTapToConsole', True), ('enable-subtests', 'enableSubtests', True), ('discard-old-reports', 'discardOldReports', False), ('todo-is-failure', 'todoIsFailure', True), ('include-comment-diagnostics', 'includeCommentDiagnostics', False), ('validate-tests', 'validateNumberOfTests', False), ('plan-required', 'planRequired', True), ('verbose', 'verbose', True), ('show-only-failures', 'showOnlyFailures', False)]
 helpers.convert_mapping_to_xml(tap, data, mappings, fail_required=True)

def tap ( registry , xml_parent , data ) : tap = XML . SubElement ( xml_parent , 'org.tap4j.plugin.TapPublisher' ) tap . set ( 'plugin' , 'tap' ) mappings = [ ( 'results' , 'testResults' , None ) , ( 'fail-if-no-results' , 'failIfNoResults' , False ) , ( 'failed-tests-mark-build-as-failure' , 'failedTestsMarkBuildAsFailure' , False ) , ( 'output-tap-to-console' , 'outputTapToConsole' , True ) , ( 'enable-subtests' , 'enableSubtests' , True ) , ( 'discard-old-reports' , 'discardOldReports' , False ) , ( 'todo-is-failure' , 'todoIsFailure' , True ) , ( 'include-comment-diagnostics' , 'includeCommentDiagnostics' , False ) , ( 'validate-tests' , 'validateNumberOfTests' , False ) , ( 'plan-required' , 'planRequired' , True ) , ( 'verbose' , 'verbose' , True ) , ( 'show-only-failures' , 'showOnlyFailures' , False ) ] helpers . convert_mapping_to_xml ( tap , data , mappings , fail_required = True )
yaml: tap adds support to tap test result files requires the jenkins :jenkins-wiki:tap plugin <tap+plugin> .