Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
/ test_debug Public archive

Simple pub transformer package to provide *_test.dart.debug.html files for tests that can run in the browser.

License

Notifications You must be signed in to change notification settings

eredo/test_debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Setup

Add test_debug to your pubspec.yaml:

name: test_debug_example

dev_dependencies:
  test: any
  test_debug: any

transformers:
# 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
dependencies:
  browser: any
  angular2: '3.0.0-alpha+1'

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

transformers:
# 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:
   $include:
       - test/angular_test.dart

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

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

Testing

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.

About

Simple pub transformer package to provide *_test.dart.debug.html files for tests that can run in the browser.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published