Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

Repository files navigation

What it is

A simple markdown reporter/formatter for TestNG.

What it does

  • Formats test output in markdown
  • Includes tests that failed by package
  • If the failure count is less than a configurable amount (10 by default, the stack trace/details of the failure are shown)

Using

  1. Add the dependency to your Savant file in the test-runtime group
    dependency(id: "io.fusionauth:testng-markdown-formatter:1.0.0")
    
  2. Configure the markdown reporter as a listener using the following testng argument: -listener io.fusionauth.util.testng.reporters.JavaTestNGMarkdownReporter

When you run your tests, the markdown will be in the TestNG report output directory as test_report.md by default.

Customizing

Report filename - set the testng_markdown_output_path environment variable

Report header in the markdown - testng_markdown_report_name

Number of failures to show details of - testng_markdown_test_failure_limit

Building

gradle clean test (run through Mise; mise.toml pins Gradle and Java)

Publishing to Maven Central

Prerequisites

You must have a valid GPG signing key and sonatype credentials configured in ~/.gradle/gradle.properties:

signing.gnupg.keyName=<key>
signing.gnupg.passphrase=<passphrase>
centralUsername=<username>
centralPassword=<password>>

Publishing

To publish an artifact in Sonatype, run:

gradle clean publish jreleaserDeploy

If you want to stage an artifact in Sonatype first, then manally deploy it from https://central.sonatype.com, run:

JRELEASER_MAVENCENTRAL_STAGE=UPLOAD gradle jreleaserDeploy

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages