All Projects → jenkinsci → testng-plugin-plugin

jenkinsci / testng-plugin-plugin

Licence: other
TestNG Reports Plugin for Jenkins

Programming Languages

java
68154 projects - #9 most used programming language
groovy
2714 projects
HTML
75241 projects

Projects that are alternatives of or similar to testng-plugin-plugin

Psexcel
A simple Excel PowerShell module
Stars: ✭ 234 (+317.86%)
Mutual labels:  reporting
ptnotes
No description or website provided.
Stars: ✭ 61 (+8.93%)
Mutual labels:  reporting
aterm
It records your terminal, then lets you upload to ASHIRT
Stars: ✭ 17 (-69.64%)
Mutual labels:  reporting
youtrack-worklog-viewer
A tool to keep track of the work hours you spent on issues in the YouTrack issue management system
Stars: ✭ 37 (-33.93%)
Mutual labels:  reporting
kraken
Kraken CI is a continuous integration and testing system.
Stars: ✭ 87 (+55.36%)
Mutual labels:  reporting
site
RailroadPM.org 2.x Site
Stars: ✭ 18 (-67.86%)
Mutual labels:  reporting
Jasperphp
JasperReports for PHP
Stars: ✭ 222 (+296.43%)
Mutual labels:  reporting
Samples-JS-PHP
JavaScript and PHP samples for Stimulsoft Reports.PHP reporting tool.
Stars: ✭ 17 (-69.64%)
Mutual labels:  reporting
allure-bamboo
Allure plugin for Atlassian Bamboo
Stars: ✭ 26 (-53.57%)
Mutual labels:  reporting
E-commerceRetailerFYP
Android E-commerce Platform. Allow retailer to post product, manage order, chat and view report
Stars: ✭ 31 (-44.64%)
Mutual labels:  reporting
SeLite
Automated database-enabled navigation ✔️ of web applications
Stars: ✭ 34 (-39.29%)
Mutual labels:  reporting
laracube
Code Driven Reporting Platform for Laravel.
Stars: ✭ 25 (-55.36%)
Mutual labels:  reporting
AppDynamics.DEXTER
Turn your APM data store into a Data Warehouse with advanced reporting, including entities, configuration, metrics, flowmaps, events, snapshots and call graph flame graphs
Stars: ✭ 79 (+41.07%)
Mutual labels:  reporting
Widestage
Lightweight Open Source Business Intelligence and reporting tool for mongodb, postgresql, Mysql, MS sql, oracle, & google bigQuery allow users create their own reports just dragging and dropping, widestage also has a data governance layer AKA semantic layer
Stars: ✭ 246 (+339.29%)
Mutual labels:  reporting
ruby-grafana-reporter
Reporting Service for Grafana
Stars: ✭ 42 (-25%)
Mutual labels:  reporting
Closedxml.report
ClosedXML.Report is a tool for report generation with which you can easily export any data from your .NET classes to Excel using a XLSX-template.
Stars: ✭ 230 (+310.71%)
Mutual labels:  reporting
papeR
A toolbox for writing Sweave or other LaTeX-based papers and reports and to prettify the output of various estimated models.
Stars: ✭ 26 (-53.57%)
Mutual labels:  reporting
PRISMA2020
Produce PRISMA-2020 compliant flow diagrams
Stars: ✭ 58 (+3.57%)
Mutual labels:  reporting
RDLCPrinter
Wpf ReportViewer control and RDLCPrinter work with SQL Server LocalReport. You can export your report to PDF, Word or PNG Image...
Stars: ✭ 26 (-53.57%)
Mutual labels:  reporting
node-w3c-validator
Wrapper for The Nu Html Checker (v.Nu)
Stars: ✭ 28 (-50%)
Mutual labels:  reporting

TestNG Plugin

This plugin allows you to publish TestNG test results generated using org.testng.reporters.XMLReporter. TestNG result xml file contains more information than the junit report xml file . This plugin exposes the extra information in graph and table reports.

This plugin makes it possible to import TestNG XML reports from each build into Jenkins.

The data is parsed using the output generated using org.testng.reporters.XMLReporter. The results are displayed with a trend graph and all details about which tests that failed are also presented.

Features

The page layouts are intentionally designed to look very similar to the JUnit plugin.

  • In the project/build page you can see a summary of passed/fail tests as well as passed/fail configuration methods. It also lists the failed test cases with a direct link to view the test failure.

  • In the Class result summary page test methods are separated from configuration methods

  • In the Package result summary you can see the order which test methods were ran during the regression run.

  • Different graphs will show you the pass/failed trend of job's previous results.

  • Able to hide/expand tables that display package and class results

Usage

Once you have configured your build to run TestNG based test cases and also generate the TestNG specific result XML, using this plugin is very simple. In Post-Build Actions, simply enable Publish TestNG Results. This option allows you to configure the following properties:

  • 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

The link:https://www.jenkins.io/redirect/pipeline-snippet-generator[Pipeline Syntax Snippet Generator] guides the user to select TestNG report options. Add the testNG step to declarative Pipeline in a post section.

  post {
    always {
      testNG()
    }
  }

Additional options can be included in the testNG declarative Pipeline step like this:

  post {
    always {
      testNG(showFailedBuilds: true,
             unstableFails: 5, unstableSkips: 25,
             failedFails:  10, failedSkips:   50)
    }
  }

The testNG Pipeline step can be used in a scripted Pipeline like this:

node {
  // Add steps that run TestNG tests
  // Publish TestNG report with the `testNG()` step
  testNG(reportFilenamePattern: '**/testng-many-results.xml')
}

Properties

Some TestNG plugin properties can only be controlled by command line properties set at Jenkins startup.

Allow unescaped HTML

SECURITY-2788 notes that test description and test exception messages allow unescaped HTML, leading to a cross-site scripting vulnerability. Current releases of the TestNG plugin always escape test description and test exception messages. If test description or test exceptions messages must not be escaped and administrators accept the risk of disabling this security safeguard, set the Java property hudson.plugins.testng.Publisher.allowUnescapedHTML=true from the command line that starts the Jenkins controller.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].