Hello. I switched to ElectricSpecification from RopoSpecification(Robospock) since i have robolectric 3.3.1 and your impl seems to be working with this robolectric version.
I will note that i have a robolectric working in modules of application.
It basically setup but i have problem accessing resources
i have basically such test that is in module (not app)
@config(manifest='src/main/AndroidManifest.xml')
class ExampleRoboSpec extends ElectricSpecification {
}
now whatever i put to manifest config i still get issue/warning:
WARNING: No manifest file found at ./AndroidManifest.xml.
Falling back to the Android OS resources only.
To remove this warning, annotate your test class with @config(manifest=Config.NONE).
what finally ends up with:
android.content.res.Resources$NotFoundException: Unable to find resource ID #0x7f060080 in packages [android, org.robolectric.default]
It seems that @config annotation (org.robolectric.annotation.Config) is not respected at all.
I have also a default working robolectric with robolectric.properties file but this is also not used
Question is how to get it working in general (module or app) since i tried both with still same above warning and resources missing
Hello. I switched to ElectricSpecification from RopoSpecification(Robospock) since i have robolectric 3.3.1 and your impl seems to be working with this robolectric version.
I will note that i have a robolectric working in modules of application.
It basically setup but i have problem accessing resources
i have basically such test that is in module (not app)
@config(manifest='src/main/AndroidManifest.xml')
class ExampleRoboSpec extends ElectricSpecification {
}
now whatever i put to manifest config i still get issue/warning:
WARNING: No manifest file found at ./AndroidManifest.xml.
Falling back to the Android OS resources only.
To remove this warning, annotate your test class with @config(manifest=Config.NONE).
what finally ends up with:
android.content.res.Resources$NotFoundException: Unable to find resource ID #0x7f060080 in packages [android, org.robolectric.default]
It seems that @config annotation (org.robolectric.annotation.Config) is not respected at all.
I have also a default working robolectric with robolectric.properties file but this is also not used
Question is how to get it working in general (module or app) since i tried both with still same above warning and resources missing