This plugin allows you to publish TestNG results generated using
TestNG result xml file contains more information than the junit report xml file . This plugin exposes those extra information in graph and table reports.
- TestNG XML report pattern: This is a file name pattern that can be used to locate the TestNG XML report files (for example */target/testng-results.xml*). The path is an Ant-style pattern (e.g. fileset) or a list of files and folders separated by the characters ';:,'. TestNG must be configured to generate XML reports using _org.testng.reporters.XMLReporter _for this plug-in to function.
- Escape Test Description string?: If checked, the plug-in escapes the description string associated with the test method while displaying test method details. Unchecking this allows you to use HTML tags to format the description. (enabled by default).
- Escape exception messages?: If checked, the plug-in escapes the test method's exception messages. Unchecking this allows you to use HTML tags to format the exception message e.g. embed links in the text. (enabled by default)
- Show Failed Builds?: If checked, the plug-in includes results from failed builds in the trend graph. (Disabled by default).
- If this is a maven build, it is better to configure the build step with
-Dmaven.test.failure.ignore=true option. This results in build with test failures being marked as Unstable, thus distinguishing it from build that failed because of non test related issues
- Even when this option is selected, failed builds with no results and aborted builds will not be displayed in graphs
- Mark build as unstable on Skipped config/test methods?: Marks the build unstable of skipped configuration or test methods are found in results. If build result is worse that UNSTABLE, this option has no effect
- Mark build as failure on failed configuration?: Marks the build as failed if there are any configuration method failures
- Thresholds for marking the build as Unstable/Failed: User can configure a Threshold Mode as number of tests or percentage of tests and then configure these values separately as well. This allows for scenarios where we want the builds to be marked successful even when there are some test failures or mark the build as failed even if there is a single test method failure.
Pipeline in Jenkinsfile
step([$class: 'Publisher', reportFilenamePattern: '**/testng-results.xml'])
Release 1.14 (July 5th, 2016)