GithubHelp home page GithubHelp logo

Comments (10)

pedrovgs avatar pedrovgs commented on July 17, 2024 3

Interesting 🤔 Thanks for the information, I had no idea you can get the SD card data from a GCP storage. Instead of adding the task you mention I'd make the plugin support fetching the images from the GCP storage. I've tagged this issue as an enhancement in case anyone would like to collaborate.

from shot.

Serchinastico avatar Serchinastico commented on July 17, 2024 3

I'll join if you don't mind. I see two approaches here:

  1. Create a separate task in Shot to just compare the screenshots just as @Android-s14 proposed
  2. Create a way to integrate Shot into Firebase directly, I don't know how many other services are there available for running emulators in remote environments.

I personally like the first one as it is more versatile and cover (and will cover) other services as well.

from shot.

pedrovgs avatar pedrovgs commented on July 17, 2024

Hi @Android-s14 unfortunately, this project is not compatible with Firebase Test Lab. The original facebook library we use under the hood is not compatible either. As the main image comparison logic is implemented using a Gradle plugin and this is not uploaded to the Firebase services we will never be able to use this approach in Firebase test lab without implementing the core library again. We created this project as a Gradle Plugin improvement and for now, we won't change the core library because we know Facebook is working on it. Sorry for the inconveniences.

from shot.

andrey-bolduzev avatar andrey-bolduzev commented on July 17, 2024

I mean, as I mentioned above, there's a way to make it work and it does work, so it's not really incompatible. It's just the structure of the gradle tasks makes the setup a bit less obvious.

from shot.

pedrovgs avatar pedrovgs commented on July 17, 2024

Are you sure we can pull through adb all the screenshots saved on the device running on Firebase Test Lab?

from shot.

Android-s14 avatar Android-s14 commented on July 17, 2024

They don't provide an adb access to the devices/emulators they run tests on. But they do dump the complete sdcard contents to a bucket in the GCP storage.

So assuming the team already has some flow in place to run connected tests remotely and pull some results back from the cloud storage (e.g., test execution and code coverage data), it's only one step away to find a folder named screenshots-default among this data and copy it over to some <project>/app/screenshots/ location.

At which point, it would be highly convenient to have a gradle task that is equivalent to this ./gradlew executeScreenshotTests -x downloadScreenshots -x removeScreenshots -x connectedAndroidTest, i.e., does the comparison magic without worrying about running the tests and communicating with the device.

from shot.

pedrovgs avatar pedrovgs commented on July 17, 2024

@Serchinastico ok, then I think we can split the tasks as a first approach and we'll see if we will implement that later.

from shot.

Laimiux avatar Laimiux commented on July 17, 2024

I've added a simple initial implementation of this in a PR above. Let me know if you have any feedback or particular use cases that we should address before it is good to go.

from shot.

pedrovgs avatar pedrovgs commented on July 17, 2024

Hi @Laimiux sorry for the delay, I'm going to take a look right now. Thanks for the contribution 😃

from shot.

pedrovgs avatar pedrovgs commented on July 17, 2024

PR merged, I'm closing this issue and releasing a version. Thank you all for your help 👏

from shot.

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.