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.
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
There's no real difference. Just make sure to apply all
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
pub serve you can open the debug files in dartium:
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.
Add this to your package's pubspec.yaml file:
dependencies: test_debug: "^0.1.0"
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.1.0||Apr 1, 2017|
We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Detected platforms: Flutter, web, other
No platform restriction found in primary library
Changelog entries help clients to follow the progress in your code.
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:
example.dartor you could also use
Fix analysis and formatting issues.
Analysis or formatting checks reported 3 hints.