Comments (12)
That's gonna be hard, as none of us is a fan of Maven.
Maybe you could help us with that?
from robospock.
Sorry, I can't. I thought it would be nice - I don't absolutely need it.
FYI I use Maven on my project not because I'm a fan (and I'm not), but because the Android Gradle plugin has still some limitations.
from robospock.
What limitations do You mean exactly?
2014-02-04 Clément Plantier [email protected]:
Sorry, I can't. I thought it would be nice - I don't absolutely need it.
FYI I use Maven on my project not because I'm a fan (and I'm not), but
because the Android Gradle plugin has still some limitations.Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-34059838
.
Pozdrawiam,
Maciek Opa³a
from robospock.
At the time I tried using Gradle, I was not able to get coverage report with Gradle+Robolectric.
from robospock.
I have just found this gralde plugin:
http://www.gradle.org/docs/current/userguide/jacoco_plugin.html
I would need to dig in and check if combos with gradle + robospock.
On Tue, Feb 4, 2014 at 2:51 PM, Clément Plantier
[email protected]:
At the time I tried using Gradle, I was not able to get coverage report
with Gradle+Robolectric.Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-34060522
.
from robospock.
The problem with this plugin is that it depends on the "java" gradle plugin. With Android we don't use it but a specific "android" plugin.
from robospock.
There a trick to have another gradle buildscript for separate java-based
tasks.
Try to make next to your build.gradle another file ex. 'coverage.gradle'
and there place apply: java, point src dirs etc. Then just run gradle -b
coverage.gradle. I can post you more accurate example showing how to
integrate checkstyle in Android project.
On Tue, Feb 4, 2014 at 3:00 PM, Clément Plantier
[email protected]:
The problem with this plugin is that it depends on the "java" gradle
plugin. With Android we don't use it but a specific "android" plugin.2014-02-04 Przemys³aw Jakubczyk [email protected]:
I have just found this gralde plugin:
http://www.gradle.org/docs/current/userguide/jacoco_plugin.htmlI would need to dig in and check if combos with gradle + robospock.
On Tue, Feb 4, 2014 at 2:51 PM, Clément Plantier
[email protected]:At the time I tried using Gradle, I was not able to get coverage
report
with Gradle+Robolectric.Reply to this email directly or view it on GitHub<
https://github.com/Polidea/RoboSpock/issues/11#issuecomment-34060522>
.Reply to this email directly or view it on GitHub<
https://github.com/Polidea/RoboSpock/issues/11#issuecomment-34060917>
.Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-34061223
.
from robospock.
Thanks for the help. I'll try again soon and post a working sample if I succeed. Please try to do the same if you have some time. In fact I don't need checkstyle-specific integration, but a full SonarQube analysis using the sonar-runner plugin, with code coverage for robolectric tests.
from robospock.
Hi again,
check this snippet
repositories {
mavenCentral()
}
apply plugin: 'checkstyle'
apply plugin: 'pmd'
apply plugin: 'java'
pmd {
sourceSets {
main.java.srcDirs = ['src/main/java/']
}
ruleSetFiles = files("config/pmd/pmd-rules.xml")
ignoreFailures true
}
checkstyle {
sourceSets {
main.java.srcDirs = ['src/main/java']
}
ignoreFailures true
showViolations false
}
gradle.projectsEvaluated {
compileJava.enabled false
}
place this into analysis.gradle file and then run with ./gradlew -b
analysis.gradle check
since it works for checkstyle and pmd there huge possibility that your tool
too :)
On Tue, Feb 4, 2014 at 3:09 PM, Clément Plantier
[email protected]:
Thanks for the help. I'll try again soon and post a working sample if I
succeed. Please try to do the same if you have some time. In fact I don't
need checkstyle-specific integration, but a full SonarQube analysis using
the sonar-runner plugin, with code coverage for robolectric tests.Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-34061977
.
from robospock.
So, no Maven support is planned?
from robospock.
Not at the moment, but if you need it - maybe you could contribute?
from robospock.
Sorry I don't plan to support Maven projects. Google moved to gradle so I suggest to do the same.
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.