Unverified Commit 7e445a17 authored by Danny Tuppeny's avatar Danny Tuppeny Committed by GitHub

Add @isTest to Flutter's wrappers over group/test (#27532)

Fixes https://github.com/Dart-Code/Dart-Code/issues/1421.
parent 32b9c2f0
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment