diff --git a/packages/flutter_test/lib/src/test_compat.dart b/packages/flutter_test/lib/src/test_compat.dart index d1688b7759..2c9b091f6b 100644 --- a/packages/flutter_test/lib/src/test_compat.dart +++ b/packages/flutter_test/lib/src/test_compat.dart @@ -4,6 +4,7 @@ import 'dart:async'; +import 'package:meta/meta.dart'; import 'package:test_api/src/backend/declarer.dart'; // ignore: implementation_imports import 'package:test_api/src/frontend/timeout.dart'; // ignore: implementation_imports import 'package:test_api/src/backend/group.dart'; // ignore: implementation_imports @@ -155,6 +156,7 @@ Future _runSkippedTest(Suite suiteConfig, Test test, List parents, /// suite*—tests in other suites will run as normal. We recommend that users /// avoid this flag if possible and instead use the test runner flag `-n` to /// filter tests by name. +@isTest void test(Object description, Function body, { String testOn, Timeout timeout, @@ -227,6 +229,7 @@ void test(Object description, Function body, { /// suite*—tests in other suites will run as normal. We recommend that users /// avoid this flag if possible, and instead use the test runner flag `-n` to /// filter tests by name. +@isTest void group(Object description, Function body) { _declarer.group(description.toString(), body); }