Skip to content

Commit

Permalink
spock example improved
Browse files Browse the repository at this point in the history
  • Loading branch information
sody committed Jan 30, 2012
1 parent 9659942 commit bef570d
Show file tree
Hide file tree
Showing 5 changed files with 389 additions and 175 deletions.
144 changes: 70 additions & 74 deletions testing/testing-spock/pom.xml
Original file line number Diff line number Diff line change
@@ -1,88 +1,84 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.example</groupId>
<artifactId>testing-example</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.example</groupId>
<artifactId>testing-spock</artifactId>
<artifactId>testing-example</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
</parent>

<groupId>com.example</groupId>
<artifactId>testing-spock</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Testing Spock Framework Example</name>
<description>
This is an example application that demonstrates Spock Framework usage.
</description>
<name>Testing Spock Framework Example</name>
<description>
This is an example application that demonstrates Spock Framework usage.
</description>

<properties>
<groovy-version>1.7.10</groovy-version>
<gmaven-version>1.3</gmaven-version>
<gmaven-provider>1.7</gmaven-provider>
<spock.version>0.5-groovy-1.7</spock.version>
</properties>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>${groovy-version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.spockframework</groupId>
<artifactId>spock-core</artifactId>
<version>${spock.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<dependencies>
<dependency>
<build>
<testResources>
<testResource>
<directory>src/test/groovy</directory>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/*Spec.groovy</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>${gmaven-version}</version>
<configuration>
<providerSelection>${gmaven-provider}</providerSelection>
</configuration>
<executions>
<execution>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>${groovy-version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.spockframework</groupId>
<artifactId>spock-core</artifactId>
<version>${spock.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>${gmaven-version}</version>
<configuration>
<providerSelection>${gmaven-provider}</providerSelection>
</configuration>
<executions>
<execution>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.codehaus.gmaven.runtime</groupId>
<artifactId>gmaven-runtime-1.7</artifactId>
<version>${gmaven-version}</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.spockframework</groupId>
<artifactId>spock-maven</artifactId>
<version>${spock.version}</version>
<executions>
<execution>
<goals>
<goal>find-specs</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<groovy-version>1.7.10</groovy-version>
<gmaven-version>1.3</gmaven-version>
<gmaven-provider>1.7</gmaven-provider>
<spock.version>0.5-groovy-1.7</spock.version>
</properties>
</project>
87 changes: 0 additions & 87 deletions testing/testing-spock/src/main/java/com/example/LocaleUtils.java

This file was deleted.

Loading

0 comments on commit bef570d

Please sign in to comment.