Проблема (Вопрос) - не находится папка allure-results. Тесты бегают. Команда clean и test Мавена работают. А вот serve и report нет.
Я попытался сделать …прописывать путь хранения в resources, в pom.xml
У меня получилось запускать тесты
У меня не получилось получить отчет allure в нормальном виде (читай: в любом)
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>SauceProject</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.7.1</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>4.11.0</version>
</dependency>
<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>5.4.1</version>
</dependency>
<dependency>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-testng</artifactId>
<version>2.24.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<configuration>
<argLine>
-javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/1.9.6/aspectjweaver-1.9.6.jar"
</argLine>
<systemPropertyVariables>
<allure.result.directory>target/allure-results</allure.result.directory>
<value>${basedir}/target/allure-results</value>
</systemPropertyVariables>
</configuration>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>1.9.6</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-maven</artifactId>
<version>2.10.0</version>
</plugin>
</plugins>
</build>
</project>
"C:\Program Files\Java\jdk-17.0.5\bin\java.exe" "-Dmaven.multiModuleProjectDirectory=D:\PROJECTS JAV\Californication\CalifornicationSauceProject" -Djansi.passthrough=true "-Dmaven.home=D:\Program\IntelliJ IDEA Community Edition 2022.1\plugins\maven\lib\maven3" "-Dclassworlds.conf=D:\Program\IntelliJ IDEA Community Edition 2022.1\plugins\maven\lib\maven3\bin\m2.conf" "-Dmaven.ext.class.path=D:\Program\IntelliJ IDEA Community Edition 2022.1\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\Program\IntelliJ IDEA Community Edition 2022.1\lib\idea_rt.jar=56719:D:\Program\IntelliJ IDEA Community Edition 2022.1\bin" -Dfile.encoding=UTF-8 -classpath "D:\Program\IntelliJ IDEA Community Edition 2022.1\plugins\maven\lib\maven3\boot\plexus-classworlds-2.7.0.jar;D:\Program\IntelliJ IDEA Community Edition 2022.1\plugins\maven\lib\maven3\boot\plexus-classworlds.license" org.codehaus.classworlds.Launcher -Didea.version=2023.2.1 io.qameta.allure:allure-maven:2.10.0:serve
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------< org.example:SauceProject >----------------------
[INFO] Building SauceProject 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- allure:2.10.0:serve (default-cli) @ SauceProject ---
[INFO] Allure installation directory D:\PROJECTS JAV\Californication\CalifornicationSauceProject/.allure
[INFO] Try to finding out allure 2.8.1
[INFO] Generate Allure report (serve) with version 2.8.1
[INFO] Generate Allure report to D:\PROJECTS JAV\Californication\CalifornicationSauceProject\target\site/allure-maven-plugin
[ERROR] Directory D:\PROJECTS JAV\Californication\CalifornicationSauceProject\target\allure-results not found.
[WARNING] Allure report was skipped because there is no results directories found.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.030 s
[INFO] Finished at: 2023-09-04T17:34:05+03:00
[INFO] ------------------------------------------------------------------------
[WARNING]
[WARNING] Plugin validation issues were detected in 1 plugin(s)
[WARNING]
[WARNING] * io.qameta.allure:allure-maven:2.10.0
[WARNING]
[WARNING] For more or less details, use 'maven.plugin.validation' property with one of the values (case insensitive): [BRIEF, DEFAULT, VERBOSE]
[WARNING]
Process finished with exit code 0