Gradle Robospock plugin

Gradle plugin that provides running Android unit tests on local machine using Robospock

License

License

Categories

Categories

Spock Application Testing & Monitoring
GroupId

GroupId

org.robospock
ArtifactId

ArtifactId

robospock-plugin
Last Version

Last Version

0.4.0
Release Date

Release Date

Type

Type

jar
Description

Description

Gradle Robospock plugin
Gradle plugin that provides running Android unit tests on local machine using Robospock
Project URL

Project URL

https://github.com/pjakubczyk/robospock-plugin
Source Code Management

Source Code Management

https://github.com/pjakubczyk/robospock-plugin

Download robospock-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/org.robospock/robospock-plugin/ -->
<dependency>
    <groupId>org.robospock</groupId>
    <artifactId>robospock-plugin</artifactId>
    <version>0.4.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.robospock/robospock-plugin/
implementation 'org.robospock:robospock-plugin:0.4.0'
// https://jarcasting.com/artifacts/org.robospock/robospock-plugin/
implementation ("org.robospock:robospock-plugin:0.4.0")
'org.robospock:robospock-plugin:jar:0.4.0'
<dependency org="org.robospock" name="robospock-plugin" rev="0.4.0">
  <artifact name="robospock-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.robospock', module='robospock-plugin', version='0.4.0')
)
libraryDependencies += "org.robospock" % "robospock-plugin" % "0.4.0"
[org.robospock/robospock-plugin "0.4.0"]

Dependencies

compile (2)

Group / Artifact Type Version
com.android.tools.build : gradle jar 0.9.1
org.codehaus.groovy : groovy-all jar 1.8.6

test (1)

Group / Artifact Type Version
org.spockframework : spock-core jar 0.6-groovy-1.8

Project Modules

There are no modules declared in this project.

robospock-plugin

Gradle plugin for RoboSpock allows you to integrate unit test support (robolectric/robospock) with your Android project.

Check out more on [http://robospock.org/]

Important note for build.gradle:

evaluationDependsOn(":android-sample")

apply plugin: 'groovy'

dependencies {
  compile "org.codehaus.groovy:groovy-all:1.8.6"
  compile 'org.robospock:robospock:0.4'
}


project.ext {
    robospock = ":android-sample" // project to test
}

apply plugin: 'robospock'

The robospock plugin must be applied after the android plugin. Gradle provides the evaluationDependsOn configuration to accomplish this. See example above.

Changelog

0.4.0

  • Robospock plugin extends java source sets instead of overriding classpath
  • Better integration with IntelliJ

0.3.1

  • Enabling unit testing android libraries
  • Gradle wrapper updated to 1.10
  • Android plugin updated to 0.8.+

0.3.0

  • Maven dependencies from subprojects are linked to main project

0.2.2

  • Changing project structure
  • Added unit tests

0.2.1

  • Adding support for maven dependencies and project dependencies
  • Plugin can be place anywhere in script

0.0.1

  • Initial release
  • Plugin supports testing simple Android projects

Versions

Version
0.4.0
0.3.1
0.3.0
0.2.1
0.2
0.0.1