Added 'exclude' parameter to 'testWidgets()'. (#86397)

This commit is contained in:
Darren Austin
2021-07-22 12:35:40 -07:00
committed by GitHub
parent fd3e03c5df
commit eb62bce924
2 changed files with 35 additions and 2 deletions

View File

@@ -738,6 +738,16 @@ void main() {
});
});
group('Skip and exclude work', () {
testWidgets('skipping a test skips it', (WidgetTester tester) async {
expect(true, false); // shouldn't get here
}, skip: true); // https://github.com/someissue
testWidgets('excluding a test skips it', (WidgetTester tester) async {
expect(true, false); // shouldn't get here
}, exclude: true);
});
group('Pending timer', () {
late TestExceptionReporter currentExceptionReporter;
setUp(() {