mdreport 0.0.3

dotnet tool install --global mdreport --version 0.0.3
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local mdreport --version 0.0.3
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=mdreport&version=0.0.3
nuke :add-package mdreport --version 0.0.3

mdreport

Command line utility for transforming various .NET build or test XML reports into human-readable markdown format.

The motivation and main purpose for this tool was to have an easy and consistent way how to produce markdown summary report during project build within GitHub CI pipeline.

Implemented:

  • TRX test reports
  • Cobertura code coverage reports
  • Roslynator code analysis report

Installation

dotnet tool install mdreport --global

Example usage

TRX test reports

TRX test reports written directly to stdout:

# a particular trx report
mdreport trx "some/dir/sub/whatever.trx"

# every trx report from a directory
mdreport trx "some/dir/sub"

# find all trx reports using globbing pattern
mdreport trx "some/**/*.trx"

TRX test reports written into a file:

mdreport trx "{path-to-a-file-or-directory-or-glob-pattern}" -o "{output-file-path}"

Cobertura code coverage reports

Cobertura code coverage reports directly to stdout:

# a particular cobertura report
mdreport cobertura "some/dir/1c2faf42-e31c-4dc9-bb68-92ed2a085db4/cobertura.coverage.xml"

# every cobertura report from a directory (finds recursively all 'cobertura.coverage.xml' files)
mdreport cobertura "some/dir/sub"

# find all cobertura reports using globbing pattern
mdreport cobertura "some/dir/**/cobertura.coverage.xml"

Cobertura test reports written into a file:

mdreport cobertura "{path-to-a-file-or-directory-or-glob-pattern}" -o "{output-file-path}"

Roslynator report

Roslynator test reports directly to stdout:

mdreport roslynator "some/dir/sub/roslynator.xml"

Roslynator test reports written into a file:

mdreport roslynator "some/dir/sub/roslynator.xml" -o "{output-file-path}"

Unlike previous reports - trx or cobertura, where it is expected that there are multiple reports from a build or test run (usually one per project in the solution), the roslynator produces single XML file for a build. So if multiple roslynator.xml files are found when using directory or globbing pattern sources, they are not merged, but the most recent one is picked as a source.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
0.0.3 636 3/8/2024
0.0.2 225 2/12/2024