Coder Social home page Coder Social logo

Comments (4)

tdrhq avatar tdrhq commented on May 5, 2024

there are a few stand-alone examples in the examples/ directory.

As for the second part.. that might be true. I'm relying on the community telling me if there's some step I need to take to automate that. (Because technically, that issue should happen to any instrumentation test, not just screenshot tests).

I generally run this on a KitKat emulator, so I might be missing out on the extra permission stuff in M.

from screenshot-tests-for-android.

trevjonez avatar trevjonez commented on May 5, 2024

To work around the runtime permission issue you can set the target sdk in gradle to 22.

I typically create a ci product flavor which gives me a place to put extra test only bits into the app apk. The reasoning for this is that things like app compat vector support doesn't work if you use the app context (targetContext from instrumentation registry) so having an empty activity that extends app compat activity to run these tests with can be super helpful and remain as fast as possible. This is something that needs to be in the app apk so the extra source set is super helpful to keep them out of normal builds. If your application doesn't already required external write the ci flavor manifest is a good place to add the permission as well.

That is just one option. another may be to use something like test butler https://github.com/linkedin/test-butler

from screenshot-tests-for-android.

tdrhq avatar tdrhq commented on May 5, 2024

Thanks @trevjonez, I've renamed the task to document this but will try it out locally before I do so

from screenshot-tests-for-android.

xiphirx avatar xiphirx commented on May 5, 2024

Support for API 23+ has been added with #89

from screenshot-tests-for-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.