Giter Club home page Giter Club logo

Comments (12)

wojtekerbetowski avatar wojtekerbetowski commented on July 20, 2024

That's gonna be hard, as none of us is a fan of Maven.
Maybe you could help us with that?

from robospock.

clemp6r avatar clemp6r commented on July 20, 2024

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.

Opalo avatar Opalo commented on July 20, 2024

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.

clemp6r avatar clemp6r commented on July 20, 2024

At the time I tried using Gradle, I was not able to get coverage report with Gradle+Robolectric.

from robospock.

pjakubczyk avatar pjakubczyk commented on July 20, 2024

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.

clemp6r avatar clemp6r commented on July 20, 2024

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.

pjakubczyk avatar pjakubczyk commented on July 20, 2024

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.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 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.

clemp6r avatar clemp6r commented on July 20, 2024

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.

pjakubczyk avatar pjakubczyk commented on July 20, 2024

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.

clemp6r avatar clemp6r commented on July 20, 2024

So, no Maven support is planned?

from robospock.

wojtekerbetowski avatar wojtekerbetowski commented on July 20, 2024

Not at the moment, but if you need it - maybe you could contribute?

from robospock.

pjakubczyk avatar pjakubczyk commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.