dart_to_sonar

A basic CLI tool to convert dart test JSON results to a sonar generic test execution report.

Usage

dart test --reporter=json > dart-results.json
dart-to-sonar -i dart-results.json -o sonar-results.xml

You can also run the tool without arguments, and it will use stdin and stdout:

dart test --reporter=json | dart-to-sonar

Arguments

Option Abbreviation Type Default Description
--in -i String <stdin> Path to the dart test result JSON file to be processed.
--out -o String <stdout> Path to the sonar generic test execution report file to be created.
--[no-]verbose -v Flag false Enables verbose logging to standard error.
--help -h Flag false Prints this help information.

Libraries