Skip to content

ty0x2333/ios-ui-automation

Repository files navigation

UIAutomation + Fastlane Screenshots + ImageMagick Demo

Article: https://tyy.sh/blog/e229c7fc63b6

Installation

$ bundle install --path vendor/bundle
$ pip install -r requirements.txt

ImageMagick 6

stackoverflow - How to use or install MagickWand on Mac OS X?

$ brew uninstall --force imagemagick
$ brew install imagemagick@6
$ echo 'export PATH="/usr/local/opt/imagemagick@6/bin:$PATH"' >> ~/.bash_profile
$ brew link imagemagick@6 --force

Usage

$ bundle exec fastlane snapshot
$ python script/compare_images.py -a screenshots-answers/en-US -i screenshots/en-US -o screenshots-diff

Workflow

Workflow