What's screenshot test
How to Integrate
http://facebook.github.io/screenshot-tests-for-android/
Env Setup
1.Python 2.7, mac default version
2.python install pip
2.1 download get-pip.py """curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py """
2.2 install pip " python get-pip.py --user"
3.install pillow , 'pip install Pillow --user'
After that you can run command:
$ ./gradlew recordDebugAndroidTestScreenshotTest
to installs and runs screenshot tests, then records their output for later verification
screenshots {
recordDir = "../screenshotTest" // default path module/screenshots
multipleDevices false
}
Here is all tasks for screenshot test
image.png
`
网友评论