testGoldensOnMobile function

  1. @isTest
void testGoldensOnMobile(
  1. String description,
  2. WidgetTesterCallback test, {
  3. bool skip = false,
  4. 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);
}