Skip to content

Commit ec149ca

Browse files
committed
Removed utils into test/utils/
1 parent 6b6806f commit ec149ca

26 files changed

+46
-61
lines changed

example/pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ packages:
471471
path: ".."
472472
relative: true
473473
source: path
474-
version: "0.2.0"
474+
version: "0.2.1"
475475
webdriver:
476476
dependency: transitive
477477
description:
@@ -495,4 +495,4 @@ packages:
495495
version: "2.2.1"
496496
sdks:
497497
dart: ">=2.10.0-4.0.dev <2.10.0"
498-
flutter: ">=1.17.0 <2.0.0"
498+
flutter: ">=1.22.0-12.1.pre <2.0.0"

example/test_driver/webcrypto_tester.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import 'dart:convert' show json;
1717
import 'package:flutter/widgets.dart';
1818
import 'package:flutter/material.dart';
1919
import 'package:flutter_driver/driver_extension.dart';
20-
import '../../test/run_all_tests.dart';
20+
import '../../test/testrunners.dart';
2121

2222
void main() {
2323
final testNames = <String>[];

test/run_all_tests.dart

Lines changed: 0 additions & 27 deletions
This file was deleted.

test/testrunners.dart

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import 'testrunner.dart' show TestRunner;
15+
import 'utils/utils.dart';
16+
import 'utils/testrunner.dart' show TestRunner;
17+
import 'package:test/test.dart' show test;
1618

1719
import 'webcrypto/aescbc_test.dart' as aescbc_test;
1820
import 'webcrypto/aesctr_test.dart' as aesctr_test;
@@ -41,3 +43,13 @@ final testRunners = <TestRunner>[
4143
rsapss_test.runner,
4244
rsassapkcs1v15_test.runner,
4345
];
46+
47+
/// Utility function that runs all tests using [test].
48+
///
49+
/// This makes it easy to run tests from `flutter drive`, when testing on a
50+
/// device.
51+
void runAllTests({TestFn test = test}) {
52+
for (final r in testRunners) {
53+
r.runTests(test: test);
54+
}
55+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)