I want to use RoboSpock for Testing my android apps, but I am stuck setting up my project. I created an example project which I have added to github. https://github.com/DerSchimi/RoboSpockExample This project contains a folder called AppLibrary which is an android-library. The App itself is inside the folder App. All RoboSpock Tests should go inside the folder AppTests. I have configured everything, but when I try to run my tests I get this error message:
WARNING: no system properties value for ro.build.date.utc
groovy.lang.MissingPropertyException: No such property: AppActivity for class: de.derschimi.app.MainActivitySpecification at de.derschimi.app.MainActivitySpecification.Should say hello world(MainActivitySpecification.groovy:15)
This is the line of code:
def mainActivity = Robolectric.buildActivity(AppActivity.class).create().get()
Is there anybody out there who is using RoboSpock? Thanks a lot for your help!