andrewreitz / android-spock Goto Github PK
View Code? Open in Web Editor NEWRunning Spock on Android
License: Apache License 2.0
Running Spock on Android
License: Apache License 2.0
Using thrown causes all tests to not run.
Android is probably some missing some java class that we need.
More than an issue is just a question... Mostly all production environments are based on KPIs and that stuff, so a way to measure the "amount" and """quality""" of the tests are needed. Is it possible to integrate the tool with Jacoco coverage tool?
And put on github pages
Android libs doesn't seem to know how to attach dependencies in the pom creation. Do it by hands in publishing.gradle.
I have connected android spock according to your instructions in tutorial. Ordinary unit test works excelent, but when I want execute one instrumentation test method error occurs - Test running failed: No test results. Empty test suite.
. Furthermore, when I execute all methods in instrumentation test class everything works fine. Please, let me know what information you need to solve the problem.
Setup Dependencies readme seems to be outdated.
I think this should be updated to: androidTestImplementation 'com.andrewreitz:spock-android:2.0.0'
To allow for getting activities and other android components.
They will compare false to whatever object type they are being compared against.
Hey,
This is more of a question then issue, but I'm wondering if I can use your runner for functional testing?
Cheers,
Maciej
The license URL is wrong and version and group are not used.
Is there any reason why the tests "have" to be with the instrumentation
tests in androidTest
?
I tried to use espresso along with android-spock. This works fine, as long as my Specification has just one single test method.
If I add a second test which interacts with the activity, these second test hangs because it is waiting for the activity coming up.
I'm not sure if it's an bug or maybe I do something wrong? Or it's just a feature that is still not implemented?
I attached some sample code :
CalculatorActivitySpec.groovy is working perfectly fine.
OtherCalculatorActivitySpec.groovy the first test is passing, the second one hangs.
EDIT: I was able to solve the Problem. I was still on v1.2.1 and found that there is an attribute runMode introduced with v1.2.2. This is currently neither mentioned in the documentation nor the sample.
Add some docs to the readme for the new stuff in 1.1.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.