Add @isTest to Flutter's wrappers over group/test (#27532)
Fixes https://github.com/Dart-Code/Dart-Code/issues/1421.
This commit is contained in:
@@ -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<void> _runSkippedTest(Suite suiteConfig, Test test, List<Group> 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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user