Tests execution with maven

This commit is contained in:
Adam Klinkosz 2021-04-15 18:38:28 +02:00
parent 3e9cdaad38
commit 03cff1a308
2 changed files with 41 additions and 0 deletions

View file

@ -1,5 +1,11 @@
# QA Assignment # QA Assignment
## Running tests
You can run the Cucumber features from your IDE or via the command line:
```shell
./mvnw -P itest integration-test
```
## Finding owners ## Finding owners
The scenarios for this feature are incomplete or even naive. Please cover more cases in more reliable way. The scenarios for this feature are incomplete or even naive. Please cover more cases in more reliable way.

35
pom.xml
View file

@ -411,6 +411,41 @@
</pluginManagement> </pluginManagement>
</build> </build>
</profile> </profile>
<profile>
<id>itest</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.22.2</version>
<configuration>
<testSourceDirectory>test/integration</testSourceDirectory>
<includes>
<include>**/CucumberRunner.java</include>
</includes>
<excludes>
<exclude>**/*Tests.java</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>integration-test</goal>
</goals>
</execution>
<execution>
<id>verify</id>
<goals>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles> </profiles>
</project> </project>