dart_to_sonar 1.0.1
dart_to_sonar: ^1.0.1 copied to clipboard
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>