Skip to content

Instantly share code, notes, and snippets.

@ksurendra
Created April 27, 2019 00:25
Show Gist options
  • Save ksurendra/5154d7ddd177f60c809c3f8746dd2613 to your computer and use it in GitHub Desktop.
Save ksurendra/5154d7ddd177f60c809c3f8746dd2613 to your computer and use it in GitHub Desktop.
Adding tasks to run cucumber tests from pom.xml
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<id>integration-test</id>
<phase>verify</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<skip>${skipTests}</skip>
<executable>node</executable>
<arguments>
<argument>--no-warnings</argument>
<argument>${npm.binDirectory}/take-home-integration-test</argument>
<argument>features</argument>
<argument>--check-new</argument>
<argument>--command</argument>
<argument>java -jar ${project.build.directory}/${project.build.finalName}.jar</argument>
<argument>--port</argument>
<argument>${takeHomeTester.port}</argument>
<argument>--out-file</argument>
<argument>${takeHomeTester.logFile}</argument>
<argument>--</argument>
<argument>--tags</argument>
<argument>not @skip</argument>
</arguments>
</configuration>
</execution>
</executions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment