facebook / screenshot-tests-for-android

Generate fast deterministic screenshots during Android instrumentation tests
http://facebook.github.io/screenshot-tests-for-android
Apache License 2.0
1.74k stars 229 forks source link

Add failureDir #225

Closed just-kip closed 5 years ago

just-kip commented 5 years ago

Save screenshot diff, like iOS plugin. Tests will not fail after the first failure, instead they will create files with all the failures and color up diff. Output will be like:

<failure-dir>/<device>/foobar_actual.png //taked screenshot
<failure-dir>/<device>/foobar_expected.png //saved screenshot
<failure-dir>/<device>/foobar_diff.png //colored diff

build.gradle

  screenshots {
      failureDir = path/to/screenshots //"$projectDir/build/failure-screenshots"
  }

if u not specify dir plugin will work as before.

xiphirx commented 5 years ago

Thanks! I'll take a look soon

just-kip commented 5 years ago

taked: deprecated_idle_actual changes: deprecated_idle_diff expected: deprecated_idle_expected

facebook-github-bot commented 5 years ago

@xiphirx merged this pull request in facebook/screenshot-tests-for-android@e897fe8ef51ad94d2e0d4aedc75912039dafdee6.