From 4d860857d6f9a39a084244c8552731d6ad86888a Mon Sep 17 00:00:00 2001 From: Danny Tuppeny Date: Tue, 11 Jan 2022 15:33:27 +0000 Subject: [PATCH] Change @isTestGroup to @isTest on testGoldens This method represents a test, not a group of tests. This annotation is used by editors like VS Code to locate tests/groups and merges them with the test results in the tree. Using `isTestGroup` would cause the analysis-based test discovery to add a group with this name, whereas the test results would add a test with this name. Both should be the same. --- packages/golden_toolkit/lib/src/testing_tools.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/golden_toolkit/lib/src/testing_tools.dart b/packages/golden_toolkit/lib/src/testing_tools.dart index df8d041..8389205 100644 --- a/packages/golden_toolkit/lib/src/testing_tools.dart +++ b/packages/golden_toolkit/lib/src/testing_tools.dart @@ -145,7 +145,7 @@ const Object _defaultTagObject = Object(); /// /// [test] test body /// -@isTestGroup +@isTest void testGoldens( String description, Future Function(WidgetTester) test, {