Help us improve
Share bugs, ideas, or general feedback.
From figma2flutter
This skill should be used when the user asks to "run golden tests", "update goldens", "visual regression", "golden test failing", "capture golden image", "compare screenshots", or mentions golden testing, visual comparison, or widget screenshot testing for Flutter.
npx claudepluginhub clearclown/figma2flutterHow this skill is triggered — by the user, by Claude, or both
Slash command
/figma2flutter:golden-testsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Manage visual regression testing for generated Flutter widgets.
Provides testing standards for Dart and Flutter projects: unit tests, widget tests, golden file tests, with mocktail and bloc_test patterns.
Sets up visual regression testing for UI: generates capture scripts, comparison scripts, and baseline images to diff dev builds against prototype screenshots during feature development.
Adds visual regression testing to UI projects via screenshot comparison, diff detection, and baseline management. Catches CSS regressions and layout shifts.
Share bugs, ideas, or general feedback.
Manage visual regression testing for generated Flutter widgets.
tabechao already has golden test infrastructure at test/golden_test/ with:
For new projects, add alchemist: ^0.10.0 to pubspec.yaml dev_dependencies.
Each generated widget gets a golden test:
import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets('WidgetName renders correctly', (tester) async {
await tester.pumpWidget(
MaterialApp(
theme: AppTheme.light,
home: Scaffold(body: Center(child: WidgetName())),
),
);
await expectLater(
find.byType(WidgetName),
matchesGoldenFile('goldens/ci/widget_name.png'),
);
});
}
test/golden/generated/<widget_name_snake_case>_golden_test.darttest/goldens/ci/<widget_name>.png# First run — capture baselines
flutter test --update-goldens test/golden/
# Subsequent runs — compare
flutter test test/golden/
# Specific widget
flutter test test/golden/generated/card_widget_golden_test.dart
test/golden_test/failures/flutter test --update-goldens and commit new baselines--update-goldens to capture baselineFor CI configuration, consult references/ci-golden-tests.md.