Comments (5)
Actually, I seem to have to generate this dir every time. FWIW I am also using runInstrumentation = false
.
from shot.
Nevermind, I'm a fool and wasn't copying the screenshots off FTL device correctly.
from shot.
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.
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.
@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)
- Generated diff image does not show all differences
- Removing the Toolbar shadow (elevation) HOT 1
- Is it possble to test screenshots for gif animated image?
- Feature Request / Question - Record Screenshots at Runtime HOT 2
- Failing to record screenshots HOT 8
- compareScreenshot to capture and verify full screen
- Support for Java 17 and AGP 8.0 HOT 1
- Failing landscape tests due to screen dimensions HOT 1
- Plugin not found issue with new plugin configuration method in gradle HOT 3
- Upgrade Scrimage to latest version
- Please consider transferring ownership to the community HOT 1
- Configuration with name 'androidTestImplementation' not found. HOT 1
- Test Run twice using version 6.0.0
- JUnit test reports?
- Cannot save screenshots on Windows, works on MACos HOT 3
- Is there any way to capture a snapshot of a BottomSheetDialog HOT 3
- Wrong SDCard folder on Android 5.1
- Screenshot of a Dialog in Compose shown over the app content
- [6.1.0][Api 30] NoSuchMethodException android.view.ViewRootImpl WindowAttachment.generateAttachInfo HOT 1
- Support for Gradle Kotlin DSL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shot.