Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- thufir@mordor:~/java/spock-example$
- thufir@mordor:~/java/spock-example$ ./gradlew clean test
- :clean
- :compileJava UP-TO-DATE
- :compileGroovy UP-TO-DATE
- :processResources UP-TO-DATE
- :classes UP-TO-DATE
- :compileTestJava UP-TO-DATE
- :compileTestGroovy
- :processTestResources
- :testClasses
- :test
- BUILD SUCCESSFUL
- Total time: 15.808 secs
- thufir@mordor:~/java/spock-example$
- thufir@mordor:~/java/spock-example$ ./gradlew clean build
- :clean
- :compileJava UP-TO-DATE
- :compileGroovy UP-TO-DATE
- :processResources UP-TO-DATE
- :classes UP-TO-DATE
- :jar
- :assemble
- :compileTestJava UP-TO-DATE
- :compileTestGroovy
- :processTestResources
- :testClasses
- :test
- :check
- :build
- BUILD SUCCESSFUL
- Total time: 16.488 secs
- thufir@mordor:~/java/spock-example$
- thufir@mordor:~/java/spock-example$
- thufir@mordor:~/java/spock-example$ cat build.gradle
- apply plugin: "groovy"
- version = "1.0"
- description = "Spock Framework - Example Project"
- // Spock works with Java 1.5 and above
- sourceCompatibility = 1.5
- repositories {
- // Spock releases are available from Maven Central
- mavenCentral()
- // Spock snapshots are available from the Sonatype OSS snapshot repository
- maven { url "http://oss.sonatype.org/content/repositories/snapshots/" }
- }
- dependencies {
- // mandatory dependencies for using Spock
- compile "org.codehaus.groovy:groovy-all:2.4.1"
- testCompile "org.spockframework:spock-core:1.0-groovy-2.4"
- // optional dependencies for using Spock
- testCompile "org.hamcrest:hamcrest-core:1.3" // only necessary if Hamcrest matchers are used
- testRuntime "cglib:cglib-nodep:3.1" // allows mocking of classes (in addition to interfaces)
- testRuntime "org.objenesis:objenesis:2.1" // allows mocking of classes without default constructor (together with CGLIB)
- // dependencies used by examples in this project
- testRuntime "com.h2database:h2:1.4.182"
- }
- // the remaining configuration is specific to this project, and is not required for using Spock
- apply from: "gradle/ide.gradle"
- task collectJars(type: Copy) {
- into "$buildDir/output/lib"
- from configurations.testRuntime
- }
- thufir@mordor:~/java/spock-example$
Advertisement
Add Comment
Please, Sign In to add comment