Git Product home page Git Product logo

dart_dot_reporter's Introduction

Dot reporter for Dart/Flutter tests

pub package

Provided to make short and readable test report for your Dart/Flutter projects.

Inspired by dot-reporter.

Sample output:

Best view for CI results review. :)

Installation

If you want to use Dot reporter on the command line, install it using pub global activate:

pub global activate dart_dot_reporter
# Add $HOME/.pub-cache/bin to your PATH

or

flutter pub global activate dart_dot_reporter

To update it, use the same pub global activate command.

Usage

At first you need to use machine readable reporter, here is example for Dart and Flutter.

Dart

pub run test --reporter=json > machine.log || echo 'Tests failed'
dart_dot_reporter machine.log

Flutter

flutter test --machine > machine.log || echo 'Tests failed'
flutter pub global run dart_dot_reporter machine.log

Arguments

dart_dot_reporter <machine.log> [flags]

NOTE: Path to log file is required as first argument.

You can use one of next flags after path:

Flag Description
-h To get help. More info can be found on GitHub.
--hide-skip To hide output about skipped tests.
--show-success To show output about successfull tests.
--show-id To show id of the test from Machine log.
--show-message To show error message of the failed test.
--no-color To disable colors.
--fail-skipped Return exit code 1 if has skipped tests.

Known issues

  • If test starts with 'loading /' it will be skipped in report.

TODO:

  • Count time of execution, and display most slow tests
  • Support tool run as a pipe like pub run test --reporter=json | dart_dot_reporter

Development

Run the app using dart bin/dart_dot_reporter.dart.


Created from templates made available by Stagehand under a BSD-style license.

dart_dot_reporter's People

Contributors

apastuhov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.