test_debug 0.1.0

  • README.md
  • Installing
  • Versions
  • 59

test_debug is a pub transformer which provides .debug.html files for dart tests when using pub serve. These can be opened in dartium for debug purposes.

Pub Version Build Status


Add test_debug to your pubspec.yaml:

name: test_debug_example

  test: any
  test_debug: any

# Place test_debug before test/pub_serve to avoid unnecessary generated html files
- test_debug:
    $include: test/**_test.dart

- test/pub_serve:
   $include: test/**_test.dart

Using with angular_test

There's no real difference. Just make sure to apply all angular and angular_test specific transformers.

name: test_debug_example
  browser: any
  angular2: '3.0.0-alpha+1'

  angular_test: '1.0.0-beta+1'
  test: any
  test_debug: any

# Run the code generator on the entire package.
- angular2/transform/codegen

# Run the reflection remover on tests that have AoT enabled.
- angular2/transform/reflection_remover:
       - test/angular_test.dart

- test_debug:
    $include: test/**_test.dart

- test/pub_serve:
   $include: test/**_test.dart


After running pub serve you can open the debug files in dartium: http://localhost:8081/your_test.dart.debug.html. Notice that port 8081 is the default port used by pub serve if a web/ directory exists. Check the output of pub serve to see on which port your tests are available.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  test_debug: "^0.1.0"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

      import 'package:test_debug/test_debug.dart';
Version Uploaded Documentation Archive
0.1.0 Apr 1, 2017 Go to the documentation of test_debug 0.1.0 Download test_debug 0.1.0 archive


We analyzed this package on Jun 12, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.60.0
  • pana: 0.11.3


Describes how popular the package is relative to other packages. [more]
39 / 100
Code health derived from static analysis. [more]
87 / 100
Reflects how tidy and up-to-date the package is. [more]
64 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:test_debug/test_debug.dart.


  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • Package is getting outdated.

    The package was released 62 weeks ago.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use test_debug.dart.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 3 hints.

    Run dartfmt to format lib/test_debug.dart.

    Run dartfmt to format lib/transformer.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >= 1.22.0 <2.0.0
barback >=0.14.0 <0.16.0 0.15.2+16
path ^1.2.0 1.6.0
Transitive dependencies
async 2.0.7
charcode 1.1.1
collection 1.14.10
pool 1.3.5
source_span 1.4.0
stack_trace 1.9.2