Comments (12)
+1, I have a fully working tutorial with Robolectric and a partially working one with Robospock here - http://aprorules.blogspot.de/2015/04/setting-up-bdd-with-robospockrobolectri.html
from robospock.
great one but I see one thing. you just added the 3.0 dependency which means it overrides the 2.3 one. i am hesitating if this will work fine across all projects.
fiy i am working to get 3.0-r2 working gut still not ready
from robospock.
The new sample is available in
https://github.com/Polidea/RoboSpock/tree/master/sample
from robospock.
Hey so i went through the blog post and the provided example links , but am still having a hard time making sense of the process , i managed add the gradle pulgin and also understood the basic structure , but i'm still now sure on where i should define my testspec.groovy or how to run the test . ?
Also do you guys have anyone working on the documentation for this . i really like the frame work and would really like to contribute if nothing else then in the documentation atleast
from robospock.
@theScud thanks for making me more verbose :)
the webpage robospock.org has been updated.
from robospock.
@theScud
https://github.com/robospock/RoboSpock/tree/master/sample
I have added a small readme. Please don't hesitate to ask more question so I can extend it.
from robospock.
LOL thanks for dumbing it down :P
from robospock.
okay so i tried like you suggested but got this warning and a failed to execute result
Error:Gradle: Execution failed for task ':app:compileFlavorDebugUnitTestGroovy'.
no source files
cant make head or tail of this because i have a test spec in the groovy direcory
from robospock.
Looks like no Spec was found in test directory. I remember that the groovy plugin must have at least 0.3.6 version.
Btw, do you have the sample online so I could take a look?
from robospock.
@theScud still have problem ?
from robospock.
Could author update RoboSpock library ? Android Studio 1.4.0 can't run unit tests, it seems this issue is related to similar robolectric issue. robolectric/robolectric#1936
But from console gradlew test throws an error, that robolectric doesn't support API 22 and API 23
from robospock.
@viacheslavokolitiy it's matter of groovy plugin. Android gradle plugin is not always backward compatible and groovy team needs some time to adjust the changes.
Yes, robolectric doesn't support all APIs. The easiest way is to see the source code
https://github.com/robolectric/robolectric/blob/robolectric-3.0/robolectric/src/main/java/org/robolectric/internal/SdkConfig.java#L21
from robospock.
Related Issues (20)
- Robolectric 3.0 support
- Upgrade com.android.support dependency HOT 3
- Add RobolectricGradleTestRunner bits to RoboSputnik HOT 1
- Align RoboSputnik::getConfig with RobolecticTestRunner HOT 2
- Bump spock version
- Rename package to org.robospock
- Run tests from cli HOT 4
- add detail doc for usage and API documentation
- GradleRoboSpecification fails to load project resources HOT 1
- Specification only read @Config annotation on its own, not including parent class HOT 3
- "class not found" using com.android.tools.build:gradle:1.5.0 HOT 2
- Updating robolectric to 3.1 HOT 2
- Error:Class com.android.build.gradle.internal.scope.VariantScopeImpl does not implement the requested interface com.android.build.gradle.internal.scope.BaseScope HOT 2
- robospock.org website is not working HOT 1
- New to RoboSpock HOT 1
- Still using RoboGuice? HOT 2
- 'Load Image' in sample does nothing
- Can't run a single spec with gradle? HOT 3
- Robolectric 3.4.2? HOT 7
- Robolectric 4.3 support
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 robospock.