Skip to content

Commit

Permalink
✅ (FileComparatorWithThreshold) increase threshold to 0.2%
Browse files Browse the repository at this point in the history
  • Loading branch information
T-moz committed Jul 27, 2023
1 parent 1c699bd commit 936e087
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion example/multi_packages_app/app/test/flutter_test_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Future<void> testExecutable(FutureOr<void> Function() testMain) async {
relativePath: '../theme',
),
);
setupFileComparatorWithThreshold();
const m1IntelDifferenceThreshold = 0.2 / 100; // 0.2%
setupFileComparatorWithThreshold(m1IntelDifferenceThreshold);
await testMain();
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Future<void> testExecutable(FutureOr<void> Function() testMain) async {
..setEnforcedTestPlatform(TargetPlatform.macOS)
..setDeviceVariants(defaultDeviceConfigs);
await loadFonts();
setupFileComparatorWithThreshold();
const m1IntelDifferenceThreshold = 0.2 / 100; // 0.2%
setupFileComparatorWithThreshold(m1IntelDifferenceThreshold);
await testMain();
}
3 changes: 2 additions & 1 deletion example/simple_app/test/flutter_test_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Future<void> testExecutable(FutureOr<void> Function() testMain) async {
..setEnforcedTestPlatform(TargetPlatform.macOS)
..setDeviceVariants(defaultDeviceConfigs);
await loadFonts();
setupFileComparatorWithThreshold();
const m1IntelDifferenceThreshold = 0.2 / 100; // 0.2%
setupFileComparatorWithThreshold(m1IntelDifferenceThreshold);
await testMain();
}

0 comments on commit 936e087

Please sign in to comment.