2019-12-05 09:56:52 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2021-05-17 10:53:43 -04:00
|
|
|
<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">
|
2019-10-31 21:43:47 -04:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>rest-testing</artifactId>
|
|
|
|
<version>0.1-SNAPSHOT</version>
|
|
|
|
<name>rest-testing</name>
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>com.baeldung</groupId>
|
2023-12-27 11:47:23 -05:00
|
|
|
<artifactId>testing-modules</artifactId>
|
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
2019-10-31 21:43:47 -04:00
|
|
|
</parent>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<!-- utils -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-io</groupId>
|
|
|
|
<artifactId>commons-io</artifactId>
|
|
|
|
<version>${commons-io.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
|
<version>${commons-lang3.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<!-- marshalling -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
<artifactId>jackson-databind</artifactId>
|
|
|
|
<version>${jackson.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<!-- test scoped -->
|
|
|
|
<dependency>
|
2023-11-20 04:44:00 -05:00
|
|
|
<groupId>org.wiremock</groupId>
|
2019-10-31 21:43:47 -04:00
|
|
|
<artifactId>wiremock</artifactId>
|
|
|
|
<version>${wiremock.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2020-10-02 13:28:05 -04:00
|
|
|
<groupId>io.cucumber</groupId>
|
2019-10-31 21:43:47 -04:00
|
|
|
<artifactId>cucumber-java</artifactId>
|
|
|
|
<version>${cucumber.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2020-10-02 13:28:05 -04:00
|
|
|
<groupId>io.cucumber</groupId>
|
2019-10-31 21:43:47 -04:00
|
|
|
<artifactId>cucumber-junit</artifactId>
|
|
|
|
<version>${cucumber.version}</version>
|
2023-06-18 05:23:46 -04:00
|
|
|
<scope>test</scope>
|
2019-10-31 21:43:47 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jbehave</groupId>
|
|
|
|
<artifactId>jbehave-core</artifactId>
|
|
|
|
<version>${jbehave.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.intuit.karate</groupId>
|
|
|
|
<artifactId>karate-junit4</artifactId>
|
|
|
|
<version>${karate.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<finalName>rest-testing</finalName>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
2023-06-18 05:23:46 -04:00
|
|
|
<testResources>
|
|
|
|
<!-- https://github.com/karatelabs/karate#folder-structure -->
|
|
|
|
<testResource>
|
|
|
|
<directory>src/test/java</directory>
|
|
|
|
<excludes>
|
|
|
|
<exclude>**/*.java</exclude>
|
|
|
|
</excludes>
|
|
|
|
</testResource>
|
|
|
|
<testResource>
|
|
|
|
<directory>src/test/resources</directory>
|
|
|
|
</testResource>
|
|
|
|
</testResources>
|
2023-06-11 03:43:39 -04:00
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
2020-10-02 13:28:05 -04:00
|
|
|
</build>
|
2019-12-05 09:56:52 -05:00
|
|
|
|
2020-10-02 13:28:05 -04:00
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>parallel</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
|
|
<version>${maven-failsafe-plugin.version}</version>
|
2019-12-05 09:56:52 -05:00
|
|
|
<configuration>
|
2020-10-02 13:28:05 -04:00
|
|
|
<includes>
|
|
|
|
<include>CucumberIntegrationTest.java</include>
|
|
|
|
</includes>
|
|
|
|
<parallel>methods</parallel>
|
|
|
|
<threadCount>2</threadCount>
|
2019-12-05 09:56:52 -05:00
|
|
|
</configuration>
|
2020-10-02 13:28:05 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>integration-test</goal>
|
|
|
|
<goal>verify</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
2019-10-31 21:43:47 -04:00
|
|
|
|
|
|
|
<properties>
|
|
|
|
<!-- testing -->
|
|
|
|
<rest-assured.version>2.9.0</rest-assured.version>
|
2020-10-02 13:28:05 -04:00
|
|
|
<cucumber.version>6.8.0</cucumber.version>
|
2023-11-20 04:44:00 -05:00
|
|
|
<wiremock.version>3.3.1</wiremock.version>
|
2023-06-18 05:23:46 -04:00
|
|
|
<karate.version>1.3.1</karate.version>
|
2019-10-31 21:43:47 -04:00
|
|
|
<jbehave.version>4.1</jbehave.version>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
</project>
|