test_core 0.2.9

test_core #

This is a a minimal package for writing and running tests. It also contains extensions for implementing a custom test runner. At this time this package is not intended to be publicly used as the API will take time to stabilize.

0.2.9 #

  • Mark package:test_core as deprecated to prevent accidental use.
  • Depend on the latest test_api.

0.2.8 #

  • Depend on vm_service instead of vm_service_lib.
  • Drop dependency on pub_semver.
  • Allow analyzer version 0.38.x.

0.2.7 #

  • Depend on vm_service_lib instead of vm_service_client.
  • Depend on latest package:analyzer.

0.2.6 #

  • Internal cleanup - fix lints.
  • Use the latest test_api.

0.2.5 #

  • Fix an issue where non-completed tests were considered passing.
  • Updated compact and expanded reporters to display non-completed tests.

0.2.4 #

  • Avoid dart:isolate imports on code loaded in tests.
  • Expose the parseMetadata function publicly through a new backend.dart import, as well as re-exporting package:test_api/backend.dart.

0.2.3 #

  • Switch import for IsolateChannel for forwards compatibility with 2.0.0.

0.2.2 #

  • Allow analyzer version 0.36.x.
  • Update to matcher version 0.12.5.

0.2.1+1 #

  • Allow analyzer version 0.35.x.

0.2.1 #

  • Require Dart SDK >=2.1.0.
  • Require latest test_api.

0.2.0 #

  • Remove remote_listener.dart and suite_channel_manager.dart from runner and depend on them from test_api.

0.1.0 #

  • Initial release of test_core. Provides the basic API for writing and running tests on the VM.

Use this package as a library

1. Depend on it

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


dependencies:
  test_core: ^0.2.9

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:test_core/test_core.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
97
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
94
Learn more about scoring.

We analyzed this package on Sep 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.0
  • pana: 0.12.21

Platforms

Detected platforms: Flutter, web, other

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

Health suggestions

Fix lib/src/runner/load_suite.dart. (-0.50 points)

Analysis of lib/src/runner/load_suite.dart reported 1 hint:

line 22 col 1: 'package:test_core/test_core.dart' is deprecated and shouldn't be used.

Maintenance issues and suggestions

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (vm_service).

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and test_core.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
analyzer >=0.36.0 <0.39.0 0.38.2
args ^1.4.0 1.5.2
async ^2.0.0 2.3.0
boolean_selector ^1.0.0 1.0.5
collection ^1.8.0 1.14.12
glob ^1.0.0 1.1.7
io ^0.3.0 0.3.3
matcher >=0.12.5 <0.12.6 0.12.5
meta ^1.1.5 1.1.7
package_resolver ^1.0.0 1.0.10
path ^1.2.0 1.6.4
pedantic ^1.0.0 1.8.0+1
pool ^1.3.0 1.4.0
source_map_stack_trace ^1.1.4 1.1.5
source_maps ^0.10.2 0.10.8
source_span ^1.4.0 1.5.5
stack_trace ^1.9.0 1.9.3
stream_channel >=1.7.0 <3.0.0 2.0.0
test_api 0.2.7 0.2.7
vm_service ^1.0.0 1.2.0 2.0.0
yaml ^2.0.0 2.1.16
Transitive dependencies
charcode 1.1.2
convert 2.1.1
crypto 2.1.3
csslib 0.16.1
front_end 0.1.24
html 0.14.0+2
http 0.12.0+2
http_parser 3.1.3
kernel 0.3.24
package_config 1.1.0
pub_semver 1.4.2
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+12