Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: test/utils.dart

Issue 2099553002: Add an option to run skipped tests. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Fix bugs. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/runner/runner_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:collection'; 6 import 'dart:collection';
7 7
8 import 'package:test/src/backend/declarer.dart'; 8 import 'package:test/src/backend/declarer.dart';
9 import 'package:test/src/backend/group.dart'; 9 import 'package:test/src/backend/group.dart';
10 import 'package:test/src/backend/group_entry.dart'; 10 import 'package:test/src/backend/group_entry.dart';
11 import 'package:test/src/backend/invoker.dart'; 11 import 'package:test/src/backend/invoker.dart';
12 import 'package:test/src/backend/live_test.dart'; 12 import 'package:test/src/backend/live_test.dart';
13 import 'package:test/src/backend/metadata.dart'; 13 import 'package:test/src/backend/metadata.dart';
14 import 'package:test/src/backend/state.dart'; 14 import 'package:test/src/backend/state.dart';
15 import 'package:test/src/backend/suite.dart'; 15 import 'package:test/src/backend/suite.dart';
16 import 'package:test/src/runner/application_exception.dart'; 16 import 'package:test/src/runner/application_exception.dart';
17 import 'package:test/src/runner/configuration.dart';
kevmoo 2016/07/06 21:34:27 now unused?
nweiz 2016/07/06 21:36:08 Done.
17 import 'package:test/src/runner/engine.dart'; 18 import 'package:test/src/runner/engine.dart';
18 import 'package:test/src/runner/load_exception.dart'; 19 import 'package:test/src/runner/load_exception.dart';
19 import 'package:test/src/runner/plugin/environment.dart'; 20 import 'package:test/src/runner/plugin/environment.dart';
20 import 'package:test/src/runner/runner_suite.dart'; 21 import 'package:test/src/runner/runner_suite.dart';
21 import 'package:test/src/util/remote_exception.dart'; 22 import 'package:test/src/util/remote_exception.dart';
22 import 'package:test/test.dart'; 23 import 'package:test/test.dart';
23 24
24 /// The string representation of an untyped closure with no arguments. 25 /// The string representation of an untyped closure with no arguments.
25 /// 26 ///
26 /// This differs between dart2js and the VM. 27 /// This differs between dart2js and the VM.
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 expect(success, isTrue); 299 expect(success, isTrue);
299 } 300 }
300 301
301 /// Runs [body] with a declarer and returns the declared entries. 302 /// Runs [body] with a declarer and returns the declared entries.
302 List<GroupEntry> declare(void body()) { 303 List<GroupEntry> declare(void body()) {
303 var declarer = new Declarer()..declare(body); 304 var declarer = new Declarer()..declare(body);
304 return declarer.build().entries; 305 return declarer.build().entries;
305 } 306 }
306 307
307 /// Runs [body] with a declarer and returns an engine that runs those tests. 308 /// Runs [body] with a declarer and returns an engine that runs those tests.
308 Engine declareEngine(void body()) { 309 Engine declareEngine(void body(), {bool runSkipped: false}) {
309 var declarer = new Declarer()..declare(body); 310 var declarer = new Declarer()..declare(body);
310 return new Engine.withSuites([ 311 return new Engine.withSuites([
311 new RunnerSuite(const PluginEnvironment(), declarer.build()) 312 new RunnerSuite(const PluginEnvironment(), declarer.build())
312 ]); 313 ], runSkipped: runSkipped);
313 } 314 }
OLDNEW
« no previous file with comments | « test/runner/runner_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698