danger_plugin_dart_test 0.0.2 copy "danger_plugin_dart_test: ^0.0.2" to clipboard
danger_plugin_dart_test: ^0.0.2 copied to clipboard

outdated

A starting point for Dart libraries or applications.

Danger Plugin: Dart Test #

This plugin will parse the test results, and notify the failure cases.

Usage #

First, you need to prepare test result in json format. You may either:

$ dart test --reporter json > your_test_results.json
$ flutter test --reporter json > your_test_results.json

Adding this plugin to pubspec.yaml

dev_dependencies:
  danger_core:
  danger_plugin_dart_test:

In dangerfile.dart, you need to import this, and call DangerPluginDartTest.processFile with test result file.

// @dart=2.10
import 'dart:io';

import 'package:danger_core/danger_core.dart';
import 'package:danger_plugin_dart_test/danger_plugin_dart_test.dart';

void main(List<String> args, dynamic data) {
  Danger.setup(data);

  final testResultFile = File('your_test_results.json');
  DangerPluginDartTest.processFile(testResultFile);
}
0
likes
0
pub points
55%
popularity

Publisher

verified publisherdanger.systems

A starting point for Dart libraries or applications.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

danger_core, path

More

Packages that depend on danger_plugin_dart_test