You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not possible to run accessibility snapshot testing (using point-free ios-snapshotting) when creating swift packages.
The snapshots crash with
AccessibilitySnapshot/SnapshotTesting+Accessibility.swift:57: Fatal error: Accessibility snapshot tests cannot be run in a test target without a host application
It doesn't appear that the host application is necessary, at least with the point-free framework. Here is a snapshot where the default guard causing the fatal error is overridden.
I propose, to be able to pass a variable to the snapshotting-strategy to avoid checking if a host application is available. The default value true of this new parameter would keep the old strategy working the way it did and cause no backwards compatibility problems. By orverriding this to false, accessibility snapshots could also be done for swift packages.
It is not possible to run accessibility snapshot testing (using point-free ios-snapshotting) when creating swift packages.
The snapshots crash with
It doesn't appear that the host application is necessary, at least with the point-free framework. Here is a snapshot where the default guard causing the fatal error is overridden.
I propose, to be able to pass a variable to the snapshotting-strategy to avoid checking if a host application is available. The default value
true
of this new parameter would keep the old strategy working the way it did and cause no backwards compatibility problems. By orverriding this tofalse
, accessibility snapshots could also be done for swift packages.The text was updated successfully, but these errors were encountered: