robospock / RoboSpock

A testing framework which brings powers of Spock and Groovy to Android app testing
http://robospock.org
MIT License
249 stars 44 forks source link

GradleRoboSpecification fails to load project resources #55

Open r-gurzkowski opened 9 years ago

r-gurzkowski commented 9 years ago

Hi,

I have tested 0.7 and 1.0 version and the same issue occurs. When I am using GradleRoboSpecification only Android system resources are loaded and ResourceNotFound error is raised during tests. I have fixed this issue by falling back to RoboSpecification with manifest path specified (standard location). After upgrading to 1.0 I saw RoboSpecification is Deprecated. I do not know what is causing the issue, a hint is that I have multimodule project with both java and android libraries.

Any ideas what is causing this issue?

pjakubczyk commented 8 years ago

did you try to place configuration in src/test/resources/robolectric.properties ?

it is the best way to configure test env. Please mind the fact that AndroidStudio uses other root dir for project than gradle does