setEnforcedTestPlatform method

void setEnforcedTestPlatform(
  1. TargetPlatform enforcedTestPlatform
)

Images generated by golden test can have slight differences between the tests runtime platforms. Use this to enforce a specific platform across your team.

Eg TargetPlatform.linux, TargetPlatform.macOS, TargetPlatform.windows.

Implementation

void setEnforcedTestPlatform(TargetPlatform enforcedTestPlatform) {
  _enforcedTestPlatform = enforcedTestPlatform;
}