testGoldensOnMobile function
- @isTest
- String description,
- WidgetTesterCallback test, {
- bool skip = false,
- Size? windowSize,
Runs one golden test for Android and iOS.
It's the job of the test implementation to include the platform name in the golden file name - if this is not done, all tests will overwrite the same golden file(s).
Implementation
@isTest
void testGoldensOnMobile(
String description,
WidgetTesterCallback test, {
bool skip = false,
Size? windowSize,
}) {
testGoldensOnAndroid(description, test, windowSize: windowSize, skip: skip);
testGoldensOniOS(description, test, windowSize: windowSize, skip: skip);
}