Skip to content
This repository has been archived by the owner on Feb 23, 2018. It is now read-only.

Commit

Permalink
Support the latest version of test.
Browse files Browse the repository at this point in the history
R=kevmoo@google.com

Review URL: https://codereview.chromium.org//1921533010 .
  • Loading branch information
nex3 committed May 3, 2016
1 parent d0d6362 commit 14c3389
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
# 0.2.1+2

* Compatibility with the latest `test`.

# 0.2.1+1

* Require `test` version `0.12.5`.
Expand Down
4 changes: 2 additions & 2 deletions lib/metatest.dart
Expand Up @@ -17,7 +17,7 @@ import 'package:test/src/backend/live_test.dart';
import 'package:test/src/backend/state.dart';
import 'package:test/src/runner/engine.dart';
import 'package:test/src/runner/runner_suite.dart';
import 'package:test/src/runner/vm/environment.dart';
import 'package:test/src/runner/plugin/environment.dart';
import 'package:test/test.dart';

/// Declares a test with the given [description] and [body].
Expand Down Expand Up @@ -72,7 +72,7 @@ void _setUpTest(String description, void body(),
runZoned(body, zoneValues: {#test.declarer: declarer});

var engine = new Engine.withSuites([
new RunnerSuite(new VMEnvironment(), declarer.build())
new RunnerSuite(new PluginEnvironment(), declarer.build())
]);
for (var test in engine.liveTests) {
test.onPrint.listen(print);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Expand Up @@ -6,4 +6,4 @@ homepage: https://github.com/dart-lang/metatest
environment:
sdk: '>=1.8.0 <2.0.0'
dependencies:
test: '^0.12.5'
test: '^0.12.11'

0 comments on commit 14c3389

Please sign in to comment.