swift-snapshot-testing
swift-snapshot-testing copied to clipboard
Support for RTL layout testing with Xcode 11 test plans
This PR adds support for SNAPSHOT_CONFIGURATION_NAME environment variable which can be used in Test Plans configurations. When aforementioned variable exists, another level of directory nesting is added to store separate snapshots for each configuration.
Additionally, to fully support RTL layout testing, .leftToRight traits have been removed from base trait sets for each snapshotting device. This trait override caused RTL UIs to not be correctly rendered (see http://www.openradar.me/radar?id=5044259694575616).
See #168 for more background for this PR.
@mbrandonw @stephencelis Hi! Over a month passed since I opened this PR. Is there any chance to merge it or give any pointers / suggestions :)?
Hey @SebastianOsinski! It'd definitely be nice to add an environment component to test names to distinguish things like Xcode 11 test plans! @mbrandonw and I will thing things over and bike-shed the variable name and where it renders in the filename soon.
@stephencelis Hi! Did you have time to think it over? I'm always ready to update this PR according to your suggestions ;)
Do we have any update on this PR? My team is working on a test project and we highly anticipate this feature. Thanks all for the help!
bump on this PR