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

A Danger Dart plugin to process test result.

Danger Plugin: Dart Test #

Pub version

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


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

import 'dart:io';

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

void main() {
  final testResultFile = File('your_test_results.json');