bdd testing

ReportUnit: A nUnit HTML report generator

ReportUnit is a deprecated but powerful open source report generator that allows you to easily create detailed and professional-looking reports for your unit tests. It is compatible with a wide range of test frameworks, including NUnit, MsTest, xUnit, TestNG, and Gallio.

With ReportUnit, you can easily extract information from your test results and present it in a clear, easy-to-read format, making it easy to understand the status of your tests and identify any issues that may need to be addressed.

Whether you’re a developer working on a large-scale project or a QA professional responsible for ensuring the quality of your software, ReportUnit is a valuable tool that can help you stay on top of your test results and make informed decisions about your testing efforts.

ReportUnit Features:

  • Single tool to create reports for NUnit, MsTest, xUnit, TestNG, and Gallio
  • Adds dashboard to both folder-level and file-level summaries
  • Creates responsive pages
  • Provides easy navigation for report files from the sidebar
  • Filters for tests and suites

You can either generate a report for all files in a folder or simply convert a given file. Both methods are shown below.

Working with ReportUnit Folders

You can use the library on any IDE, such as visual studio. If there are multiple files to process, simply move them to a folder on your project and run one of the following commands:

reportunit [input-folder-path]
reportunit [input-folder-path] [output-folder-path]
// all files will be created in the current folder
reportunit .

// all files will be created in the my-folder
reportunit "c:\my-folder"

// files will be created in output-folder
reportunit "c:\my-folder" "c:\output-folder" 

Note: You should use relative paths if files are moved to different locations as the supplied paths will be retained in the navigation links.

Working with ReportUnit Files

Use below to process single xml result files:

reportunit [input-file]
reportunit [input-file] [output-file]
reportunit "C:\my-folder\result.xml"
reportunit "C:\my-folder\result.xml" reportunit "C:\output-folder\report.html"

With this, you can process the generate XML and convert it to an HTML report.

ReportUnit examples

The ReportUnit nunit html report generator, provides a wide range of examples to help you get started with creating reports for your unit tests. Some of the examples include:

  1. A basic example that demonstrates how to generate a simple report using NUnit test results.
  2. An advanced example that shows how to customize the look and feel of your reports using CSS.
  3. A sample report that uses data from multiple test frameworks, such as NUnit and xUnit, to provide a comprehensive overview of your test results.
  4. A demonstration of how to use ReportUnit’s built-in charting capabilities to create visually appealing, easy-to-understand reports that highlight key metrics such as test coverage and pass/fail rates.
  5. An example of how to integrate ReportUnit into your continuous integration (CI) pipeline, so you can automatically generate reports as part of your build process.

Each example provides a detailed explanation of how to use ReportUnit and include sample code and data, and step by step instructions that you can follow to create your own reports.

Download ReportUnit

You can download the latest report unit version from our github page.

Leave a Comment

Scroll to Top