dart_to_sonar 1.0.1 copy "dart_to_sonar: ^1.0.1" to clipboard
dart_to_sonar: ^1.0.1 copied to clipboard

unlisted

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

example/example.md

Example for dart-to-sonar #

Example Test Case #

// file: test/sample_test.dart

import 'package:test/test.dart';

void main() {
  test('Sample test', () {
    expect(2 + 2, equals(4));
  });
}

Example Invocation #

dart --reporter=json test test/sample_test.dart | dart-to-sonar -o sonar-report.json

Example Output #

<?xml version="1.0"?>
<testExecutions version="1">
  <file path="test/sample_test.dart">
    <testCase name="Sample test" duration="8"/>
  </file>
</testExecutions>
0
likes
140
points
38
downloads

Documentation

API reference

Publisher

verified publisherbrickmakers.de

Weekly Downloads

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

Repository (GitHub)

License

BSD-3-Clause (license)

Dependencies

args, build_cli_annotations, freezed_annotation, json_annotation, pub_semver, xml

More

Packages that depend on dart_to_sonar