renggli / dart-junit

A test configuration for Dart producing JUnit compatible output.

Home Page:https://pub.dartlang.org/packages/junitconfiguration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JUnit Configuration

Pub Package GitHub Issues GitHub Forks GitHub Stars GitHub License

Warning: This library does not currently work with recent versions of the Dart testing framework. Due to the changed internal APIs it is not (easily) possible to make it work again. For now, if you want to use this library, write your tests using unittesting 0.11.0 instead.

A test configuration producing JUnit compatible output. This is useful for continuous integration servers (such as Jenkins) that support displaying JUnit test results.

This library is open source, stable and well tested. Development happens on GitHub. Feel free to report issues or create a pull-request there. The most recent stable versions are available through pub.dartlang.org.

Continuous build results are available from Jenkins.

Installation and Use

Add the dependency to your package's pubspec.yaml file:

dependencies:
  junitconfiguration: ">=1.0.0 <2.0.0"

Then on the command line run:

$ pub get

To import the package into your Dart tests add:

import 'package:junitconfiguration/junitconfiguration.dart';

At the top of your main method, before the actual tests write:

JUnitConfiguration.install();

And this is all that is needed.

Misc

License

The MIT License, see LICENSE.

About

A test configuration for Dart producing JUnit compatible output.

https://pub.dartlang.org/packages/junitconfiguration

License:MIT License


Languages

Language:Dart 100.0%