XUnitPublisher display ALL tests including passed tests

42 views
Skip to first unread message

red 888

unread,
Sep 5, 2017, 4:15:23 PM9/5/17
to Jenkins Users
This is how I'm using this plugin in my jenkinsfile to read MSTest trx files:
 
step([$class: 'WsCleanup'])

step([$class : 'XUnitPublisher',
    testTimeMargin: '3000',
    thresholdMode: 1,
    thresholds: [
        [$class: 'FailedThreshold', failureNewThreshold: '', failureThreshold:'2', unstableNewThreshold: '', unstableThreshold: '']
    ],
    tools : [[$class: 'MSTestJunitHudsonTestType',
        deleteOutputFiles: true,
        failIfNotNew: false,
        pattern: "\\TestResults\\*.trx",
        skipNoTestFiles: false,
        stopProcessingIfError: true
    ]]
])

This seems to generate a junitResult.xml that only includes failed tests and fixed test (tests that previously failed) and new tests. Generally this is great and should be what you want to see, but I also want to see ALL tests includes ones that passed. Is there a settings for this?
Reply all
Reply to author
Forward
0 new messages