134 lines
4.1 KiB
XML
134 lines
4.1 KiB
XML
<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/maven-v4_0_0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>ru.ibs</groupId>
|
|
<artifactId>sel1</artifactId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
<name>Archetype - sel1</name>
|
|
<url>https://git.goodtester.ru</url>
|
|
|
|
<properties>
|
|
<maven.compiler.source>8</maven.compiler.source>
|
|
<maven.compiler.target>8</maven.compiler.target>
|
|
<encoding>UTF-8</encoding>
|
|
<aspectj.version>1.9.7</aspectj.version>
|
|
<allure.version>2.13.5</allure.version>
|
|
<cucumber.version>7.15.0</cucumber.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
|
|
<!-- Selenium -->
|
|
<dependency>
|
|
<groupId>org.seleniumhq.selenium</groupId>
|
|
<artifactId>selenium-java</artifactId>
|
|
<version>4.33.0</version>
|
|
</dependency>
|
|
|
|
<!-- JUnit -->
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>4.13.1</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- Cucumber -->
|
|
<dependency>
|
|
<groupId>io.cucumber</groupId>
|
|
<artifactId>cucumber-java</artifactId>
|
|
<version>${cucumber.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.cucumber</groupId>
|
|
<artifactId>cucumber-junit</artifactId>
|
|
<version>${cucumber.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Allure -->
|
|
<dependency>
|
|
<groupId>io.qameta.allure</groupId>
|
|
<artifactId>allure-junit4</artifactId>
|
|
<version>${allure.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.qameta.allure</groupId>
|
|
<artifactId>allure-cucumber7-jvm</artifactId>
|
|
<version>2.25.0</version>
|
|
</dependency>
|
|
|
|
<!-- AspectJ -->
|
|
<dependency>
|
|
<groupId>org.aspectj</groupId>
|
|
<artifactId>aspectjweaver</artifactId>
|
|
<version>${aspectj.version}</version>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
|
|
<!-- Компиляция -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.8.1</version>
|
|
<configuration>
|
|
<source>${maven.compiler.source}</source>
|
|
<target>${maven.compiler.target}</target>
|
|
<encoding>${encoding}</encoding>
|
|
<parameters>true</parameters> <!-- для удобства рефлексии, если используешь -->
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- Запуск тестов + Allure -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>3.0.0-M5</version>
|
|
<configuration>
|
|
<testFailureIgnore>true</testFailureIgnore>
|
|
<argLine>
|
|
-javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar"
|
|
</argLine>
|
|
<systemPropertyVariables>
|
|
<allure.results.directory>${project.build.directory}/allure-results</allure.results.directory>
|
|
</systemPropertyVariables>
|
|
<!-- Чтобы запускались все тесты, убери includes или добавь там все свои -->
|
|
<!-- <includes>
|
|
<include>**/CucumberRunner.java</include>
|
|
</includes> -->
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- Allure отчет -->
|
|
<plugin>
|
|
<groupId>io.qameta.allure</groupId>
|
|
<artifactId>allure-maven</artifactId>
|
|
<version>2.10.0</version>
|
|
<configuration>
|
|
<reportVersion>2.10.0</reportVersion>
|
|
<resultsDirectory>${project.build.directory}/allure-results</resultsDirectory>
|
|
<reportDirectory>${project.build.directory}/allure-report</reportDirectory>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>report</id>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>report</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
</project>
|