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.
test_core
. Provides the basic API for writing and running
tests on the VM. Add this to your package's pubspec.yaml file:
dependencies:
test_core: ^0.1.0
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.
Now in your Dart code, you can use:
import 'package:test_core/test_core.dart';
Version | Uploaded | Documentation | Archive |
---|---|---|---|
0.2.1+1 | Jan 30, 2019 |
|
|
0.2.1 | Jan 18, 2019 |
|
|
0.2.0+1 | Nov 30, 2018 |
|
|
0.2.0 | Nov 5, 2018 |
|
|
0.1.0 | Nov 3, 2018 |
|
|
Popularity:
Describes how popular the package is relative to other packages.
[more]
|
95
|
Health:
Code health derived from static analysis.
[more]
|
93
|
Maintenance:
Reflects how tidy and up-to-date the package is.
[more]
|
70
|
Overall:
Weighted score of the above.
[more]
|
89
|
We analyzed this package on Feb 14, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter, other
Primary library:
package:test_core/test_core.dart
with components:isolate
.
Fix lib/src/runner.dart
. (-1.99 points)
Analysis of lib/src/runner.dart
reported 4 hints:
line 125 col 13: Use isEmpty instead of length
line 126 col 13: Use isEmpty instead of length
line 127 col 13: Use isEmpty instead of length
line 216 col 41: Future
results in async
function bodies must be await
ed or marked unawaited
using package:pedantic
.
Fix lib/src/runner/engine.dart
. (-1.99 points)
Analysis of lib/src/runner/engine.dart
reported 4 hints:
line 465 col 5: Future
results in async
function bodies must be await
ed or marked unawaited
using package:pedantic
.
line 471 col 5: Future
results in async
function bodies must be await
ed or marked unawaited
using package:pedantic
.
line 534 col 5: Future
results in async
function bodies must be await
ed or marked unawaited
using package:pedantic
.
line 535 col 5: Future
results in async
function bodies must be await
ed or marked unawaited
using package:pedantic
.
Fix lib/src/executable.dart
. (-1 points)
Analysis of lib/src/executable.dart
reported 2 hints:
line 122 col 5: Future
results in async
function bodies must be await
ed or marked unawaited
using package:pedantic
.
line 124 col 5: Future
results in async
function bodies must be await
ed or marked unawaited
using package:pedantic
.
Fix additional 4 files with analysis or formatting issues. (-2 points)
Additional issues in the following files:
lib/src/runner/load_suite.dart
(1 hint)lib/src/runner/runner_suite.dart
(1 hint)lib/src/runner/runner_test.dart
(1 hint)lib/test_core.dart
(1 hint)Homepage URL doesn't exist. (-20 points)
At the time of the analysis the homepage
field https://github.com/dart-lang/test/pkgs/test_core
was unreachable.
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.
Package | Constraint | Resolved | Available |
---|---|---|---|
Direct dependencies | |||
Dart SDK | >=2.0.0 <3.0.0 | ||
analyzer | >=0.26.4 <0.34.0 | 0.33.6+1 | 0.35.1 |
args | >=1.4.0 <2.0.0 | 1.5.1 | |
async | >=1.13.0 <3.0.0 | 2.0.8 | |
boolean_selector | ^1.0.0 | 1.0.4 | |
collection | ^1.8.0 | 1.14.11 | |
glob | ^1.0.0 | 1.1.7 | |
io | ^0.3.0 | 0.3.3 | |
matcher | >=0.12.3 <0.12.4 | 0.12.3+1 | 0.12.4 |
meta | ^1.1.5 | 1.1.7 | |
package_resolver | ^1.0.0 | 1.0.6 | |
path | ^1.2.0 | 1.6.2 | |
pool | ^1.3.0 | 1.4.0 | |
pub_semver | ^1.0.0 | 1.4.2 | |
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.4 | |
stack_trace | ^1.9.0 | 1.9.3 | |
stream_channel | ^1.6.0 | 1.6.8 | |
term_glyph | ^1.0.0 | 1.1.0 | |
test_api | 0.2.0 | 0.2.0 | 0.2.2 |
vm_service_client | ^0.2.3 | 0.2.6 | |
yaml | ^2.0.0 | 2.1.15 | |
Transitive dependencies | |||
charcode | 1.1.2 | ||
convert | 2.1.1 | ||
crypto | 2.0.6 | ||
csslib | 0.14.6 | ||
front_end | 0.1.6+9 | 0.1.11 | |
html | 0.13.3+3 | ||
http | 0.12.0+1 | ||
http_parser | 3.1.3 | ||
json_rpc_2 | 2.0.9 | ||
kernel | 0.3.6+9 | 0.3.11 | |
logging | 0.11.3+2 | ||
package_config | 1.0.5 | ||
plugin | 0.2.0+3 | ||
string_scanner | 1.0.4 | ||
typed_data | 1.1.6 | ||
utf | 0.9.0+5 | ||
watcher | 0.9.7+10 | ||
web_socket_channel | 1.0.9 | ||
Dev dependencies | |||
fake_async | >=0.1.2 <2.0.0 | ||
pedantic | 1.1.0 | ||
shelf_test_handler | ^1.0.0 | ||
test_descriptor | ^1.0.0 | ||
test_process | ^1.0.0 |