-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not resolve resource value: xxx #657
Comments
Never mind, it was a modularization issue. |
@saintmarina |
I have the same problem. It happens when I reference a resource that is outside of the module under test. I can reproduce it in |
@juckrit @bartek-wesolowski a unit test module can't access resources of another module. We ended up importing the module that is being tested into the paparazzi testing module (because we use robolectric, we had to conduct all the paparazzi tests in a separate module) with |
Sidenote: testFixtures should be available to use in Kotlin modules, but the fixture classes themselves cannot be written in the Kotlin language. |
@TWiStErRob yes, testFixtures are available to use in kotlin modules, however they are not available in android (application, library) kotlin modules. |
@saintmarina How did you fix your issue? I am facing with the same problem. |
Description
Paparazzi test(both record and verify) fails when tested Compose component gets resources with
xxxResources()
(e.g.stringResources()
orpainterResources()
.Stack trace:
Perhaps, the issue is related to #524.
Steps to Reproduce
Provide a sample project, failing test, or steps to reproduce.
Expected behavior
Expect the test to run smoothly
Additional information:
The text was updated successfully, but these errors were encountered: