Advertisement
coldbloodedtx

Cucumber-JVM + Maven + Groovy CLI

Mar 1st, 2012
871
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.87 KB | None | 0 0
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2.         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3.         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  4.                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5.   <modelVersion>4.0.0</modelVersion>
  6.   <groupId>com.att</groupId>
  7.   <artifactId>integration-test</artifactId>
  8.   <version>0.0.1-0</version>
  9.   <packaging>jar</packaging>
  10.  
  11.     <properties>
  12.         <tagArg>~@ignore</tagArg>
  13.         <format>pretty</format>
  14.    
  15.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16.         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  17.  
  18.         <asm.version>3.2</asm.version>
  19.         <antlr.version>3.4</antlr.version>
  20.         <cucumber-jvm.version>1.0.0.RC20</cucumber-jvm.version>
  21.         <cucumber-html.version>0.2.1</cucumber-html.version>
  22.         <exec-maven-plugin.version>1.2.1</exec-maven-plugin.version>
  23.         <gherkin.version>2.9.0</gherkin.version>
  24.         <groovy.version>2.0.0-beta-2</groovy.version>
  25.         <junit.version>4.10</junit.version>
  26.         <mockito.version>1.8.5</mockito.version>
  27.         <log4j.version>1.2.16</log4j.version>
  28.         <maven-surefire-plugin.version>2.12</maven-surefire-plugin.version>
  29.     </properties>
  30.  
  31.     <dependencyManagement>
  32.       <dependencies>
  33.         <dependency>
  34.           <groupId>asm</groupId>
  35.           <artifactId>asm</artifactId>
  36.           <version>${asm.version}</version>
  37.         </dependency>
  38.         <dependency>
  39.             <groupId>info.cukes</groupId>
  40.             <artifactId>cucumber-jvm</artifactId>
  41.             <version>${cucumber-jvm.version}</version>
  42.         </dependency>  
  43.         <dependency>
  44.             <groupId>info.cukes</groupId>
  45.             <artifactId>cucumber-core</artifactId>
  46.             <version>${cucumber-jvm.version}</version>
  47.         </dependency>
  48.         <dependency>
  49.             <groupId>info.cukes</groupId>
  50.             <artifactId>cucumber-groovy</artifactId>
  51.             <version>${cucumber-jvm.version}</version>
  52.         </dependency>
  53.         <dependency>
  54.             <groupId>info.cukes</groupId>
  55.             <artifactId>cucumber-junit</artifactId>
  56.             <version>${cucumber-jvm.version}</version>
  57.         </dependency>
  58.         <dependency>
  59.             <groupId>info.cukes</groupId>
  60.             <artifactId>cucumber-html</artifactId>
  61.             <version>${cucumber-html.version}</version>
  62.         </dependency>
  63.         <dependency>
  64.             <groupId>info.cukes</groupId>
  65.             <artifactId>gherkin</artifactId>
  66.             <version>${gherkin.version}</version>
  67.         </dependency>
  68.         <dependency>
  69.           <groupId>junit</groupId>
  70.           <artifactId>junit</artifactId>
  71.           <version>${junit.version}</version>
  72.         </dependency>
  73.         <dependency>
  74.           <groupId>log4j</groupId>
  75.           <artifactId>log4j</artifactId>
  76.           <version>${log4j.version}</version>
  77.         </dependency>
  78.         <dependency>
  79.           <groupId>org.antlr</groupId>
  80.           <artifactId>antlr</artifactId>
  81.           <version>${antlr.version}</version>
  82.         </dependency>      
  83.         <dependency>
  84.           <groupId>org.codehaus.groovy</groupId>
  85.           <artifactId>groovy</artifactId>
  86.           <version>${groovy.version}</version>
  87.         </dependency>
  88.         <dependency>
  89.           <groupId>org.mockito</groupId>
  90.           <artifactId>mockito-all</artifactId>
  91.           <version>${mockito.version}</version>
  92.         </dependency>
  93.         </dependencies>
  94.     </dependencyManagement>
  95.  
  96.  
  97.   <dependencies>
  98.     <dependency>
  99.         <groupId>asm</groupId>
  100.         <artifactId>asm</artifactId>
  101.         <scope>test</scope>
  102.     </dependency>
  103.     <dependency>
  104.         <groupId>info.cukes</groupId>
  105.         <artifactId>cucumber-groovy</artifactId>
  106.         <scope>test</scope>
  107.     </dependency>
  108.     <dependency>
  109.         <groupId>info.cukes</groupId>
  110.         <artifactId>cucumber-junit</artifactId>
  111.         <scope>test</scope>
  112.     </dependency>
  113.     <dependency>
  114.         <groupId>info.cukes</groupId>
  115.         <artifactId>cucumber-core</artifactId>
  116.         <scope>test</scope>
  117.     </dependency>
  118.     <dependency>
  119.         <groupId>info.cukes</groupId>
  120.         <artifactId>cucumber-html</artifactId>
  121.         <scope>test</scope>
  122.     </dependency>
  123.     <dependency>
  124.         <groupId>info.cukes</groupId>
  125.         <artifactId>gherkin</artifactId>
  126.         <scope>test</scope>
  127.     </dependency>
  128.     <dependency>
  129.       <groupId>junit</groupId>
  130.       <artifactId>junit</artifactId>
  131.       <scope>test</scope>
  132.     </dependency>
  133.         <dependency>
  134.         <groupId>log4j</groupId>
  135.         <artifactId>log4j</artifactId>
  136.         <scope>test</scope>
  137.     </dependency>
  138.     <dependency>
  139.         <groupId>org.antlr</groupId>
  140.         <artifactId>antlr</artifactId>
  141.         <scope>test</scope>
  142.     </dependency>
  143.     <dependency>
  144.         <groupId>org.codehaus.groovy</groupId>
  145.         <artifactId>groovy</artifactId>
  146.         <scope>test</scope>
  147.     </dependency>  
  148.   </dependencies>
  149.  
  150.     <build>
  151.         <plugins>
  152.             <plugin>
  153.                 <groupId>org.apache.maven.plugins</groupId>
  154.                 <artifactId>maven-surefire-plugin</artifactId>
  155.                 <version>${maven-surefire-plugin.version}</version>
  156.                 <configuration>
  157.                     <skipTests>true</skipTests>
  158.                 </configuration>
  159.             </plugin>
  160.             <plugin>
  161.                 <groupId>org.codehaus.mojo</groupId>
  162.                 <artifactId>exec-maven-plugin</artifactId>
  163.                 <version>${exec-maven-plugin.version}</version>
  164.                 <executions>
  165.                     <execution>
  166.                         <phase>test</phase>
  167.                         <goals>
  168.                             <goal>java</goal>
  169.                         </goals>
  170.                         <configuration>
  171.                             <classpathScope>test</classpathScope>
  172.                             <mainClass>cucumber.cli.Main</mainClass>
  173.                             <arguments>
  174.                                 <argument>--format</argument>
  175.                                 <argument>${format}</argument>
  176.                                 <argument>--strict</argument>
  177.                                 <argument>--glue</argument>
  178.                                 <argument>target/test-classes</argument>
  179.                                 <argument>target/test-classes/.</argument>
  180.                                 <argument>--tags</argument>
  181.                                 <argument>~@ignore</argument>
  182.                                 <argument>--tags</argument>
  183.                                 <argument>${tagArg}</argument>
  184.                                 <argument>-D</argument>
  185.                             </arguments>
  186.                             </configuration>
  187.                     </execution>
  188.                 </executions>
  189.             </plugin>
  190.         </plugins>
  191.     </build>   
  192. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement