Skip to content

Commit

Permalink
Change @isTestGroup to @istest on testGoldens
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DanTup committed Jan 11, 2022
1 parent 87911ac commit 4d86085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/golden_toolkit/lib/src/testing_tools.dart
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const Object _defaultTagObject = Object();
///
/// [test] test body
///
@isTestGroup
@isTest
void testGoldens(
String description,
Future<void> Function(WidgetTester) test, {
Expand Down

0 comments on commit 4d86085

Please sign in to comment.