Code Monkey home page Code Monkey logo

Comments (5)

charlesdurham avatar charlesdurham commented on May 23, 2024

Actually, I seem to have to generate this dir every time. FWIW I am also using runInstrumentation = false.

from shot.

charlesdurham avatar charlesdurham commented on May 23, 2024

Nevermind, I'm a fool and wasn't copying the screenshots off FTL device correctly.

from shot.

pedrovgs avatar pedrovgs commented on May 23, 2024

Hey @charlesdurham happy to see you were able to get the issue fixed by yourself 😃 I was wondering if you could send me an email at [email protected] or drop a comment here with information about the projects you are using shot right now. We have no idea about how people are using Shot in their projects or how many users we have 😃

from shot.

julioz avatar julioz commented on May 23, 2024

We are also running into this problem when following this project's README and setting

shot {
  runInstrumentation = false
}

Creating a screenshots directory in the following structure still didn't help:

my-module
├── build.gradle
├── screenshots
│   └── screenshot-default
└── src
    ├── androidTest
    └── main

Getting the following error when running executeScreenshotTests -Precord:

💾  Saving screenshots.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':mymodule:debugExecuteScreenshotTests'.
> java.lang.NullPointerException (no error message)
Caused by: java.lang.NullPointerException
        at scala.collection.mutable.ArrayOps$ofRef$.newBuilder$extension(ArrayOps.scala:195)
        at scala.collection.mutable.ArrayOps$ofRef.newBuilder(ArrayOps.scala:191)
        at scala.collection.TraversableLike.filterImpl(TraversableLike.scala:246)
        at scala.collection.TraversableLike.filterImpl$(TraversableLike.scala:245)
        at scala.collection.mutable.ArrayOps$ofRef.filterImpl(ArrayOps.scala:191)
        at scala.collection.TraversableLike.filter(TraversableLike.scala:259)
        at scala.collection.TraversableLike.filter$(TraversableLike.scala:259)
        at scala.collection.mutable.ArrayOps$ofRef.filter(ArrayOps.scala:191)
        at com.karumi.shot.Shot.readScreenshotsMetadata(Shot.scala:175)
        at com.karumi.shot.Shot.recordScreenshots(Shot.scala:48)
        at com.karumi.shot.tasks.ExecuteScreenshotTests.executeScreenshotTests(Tasks.scala:68)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104)

@pedrovgs Can you please advise?

from shot.

pedrovgs avatar pedrovgs commented on May 23, 2024

@julioz if you disable runInstrumentation you'll have to run instrumentation tests manually before executing Shot. This error is something we have to improve to specify there were no screenshots to pull.

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.