Comments (2)
It might be a bit confusing, but the flag
roborazzi.test.verify=true
enables you to callcaptureRoboImage()
and generate an error if the images differ. This allows you to achieve the same behavior as./gradlew verifyRoborazziDebug
simply by running the./gradlew testDebugUnitTest
task. It's not meant for filtering.
Yes, this is what I meant. I see that as the alternative to the solution proposed in this issue: instead of filtering, just run one task. However, I'd like to keep them separate.
I think the above solution should meet your requirements, but there might be a better way to approach this.
I'll look into this, thanks!
from nowinandroid.
Thank you for reaching out and considering this issue.
If you want to ignore screenshot tests during local test runs, you can use the following configuration:
// Use -PincludeScreenshot to include screenshot tests
it.useJUnit {
if (!project.hasProperty("includeScreenshot")) {
excludeCategories("com.google.samples.apps.nowinandroid.testing.category.ScreenshotTests")
}
}
By excluding the -PincludeScreenshot
property, the screenshot tests will be ignored as needed. We have a similar setting in DroidKaigi app.
Roborazzi doesn't support this filtering in the library due to simplicity, using JUnit's built-in features. More information can be found at Roborazzi issue #36.
It might be a bit confusing, but the flag roborazzi.test.verify=true
enables you to call captureRoboImage()
and generate an error if the images differ. This allows you to achieve the same behavior as ./gradlew verifyRoborazziDebug
simply by running the ./gradlew testDebugUnitTest
task. It's not meant for filtering.
I think the above solution should meet your requirements, but there might be a better way to approach this.
from nowinandroid.
Related Issues (20)
- [Bug]: #1064 is breaking PRs HOT 1
- Replace testharness with `DeviceConfigurationOverride`
- [Bug]: enableEdgeToEdge() is causing ui issue HOT 3
- Update Compose BOM to latest version
- [Bug]: Empty search text is added in recent searches.
- [Documentation]: PR template link is broken?
- Nit: Variable 'release' is never used in app build file
- [Bug]: Breaking SOLID principles and Clean Architecture. HOT 1
- [Bug]: DemoDebug Local test failed HOT 16
- Use of `UnconfinedTestDispatcher` is discouraged
- [Bug]: Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-8.5-bin.zip'. HOT 1
- [Bug]: Stability configuration file is not working as expected
- [Bug]: Fts Database data increase infinitely
- `userDataRepository.updateNewsResourceBookmark` should be renamed to `setNewsResourceBookmarked` for consistency HOT 1
- Build warnings: 'enableAndroidTest: Boolean' is deprecated HOT 1
- [Bug]: Automatic dependency guard update allows skipping checks HOT 1
- GetSearchContentsCountUseCase should not exist HOT 2
- [Bug]: Incorrect dependency graph paths in some modules HOT 1
- `main` is broken
- Missing implementation of NET_CAPABILITY_VALIDATED in ConnectivityManager HOT 3
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 nowinandroid.