Allure report unknown при создании аллюр репорта

Настраиваю аллюр отчеты в проекте автотестов (поднимаем всё с нуля, как такового опыта ни у кого на работе нет)

С помощью гайдов и документации вроде всё получилось. Отчёт создался, но он пустой… (см.скрин)

При этом allure-results создаётся, но там лежат нули

скидываю свой pom

<?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>ru.vtb.at</groupId>
    <artifactId>prbsAT</artifactId>
    <version>1.0-SNAPSHOT</version>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <cucumber.version>7.8.1</cucumber.version>
        <junit.version>5.9.1</junit.version>
        <aspectj.version>1.9.9.1</aspectj.version>
        <allure.version>2.19.0</allure.version>
        <maven.compiler.source>11</maven.compiler.source>
        <maven.compiler.target>11</maven.compiler.target>
    </properties>

    <dependencies>
        <dependency>
            <groupId>io.rest-assured</groupId>
            <artifactId>rest-assured</artifactId>
            <version>5.2.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>2.13.4.2</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.datatype</groupId>
            <artifactId>jackson-datatype-jsr310</artifactId>
            <version>2.13.4</version>
        </dependency>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-api</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.junit.vintage</groupId>
            <artifactId>junit-vintage-engine</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.22.2</version>
        </dependency>
        <dependency>
            <groupId>org.aspectj</groupId>
            <artifactId>aspectjweaver</artifactId>
            <version>1.9.9.1</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>io.cucumber</groupId>
            <artifactId>cucumber-java</artifactId>
            <version>7.8.1</version>
        </dependency>
        <dependency>
            <groupId>io.cucumber</groupId>
            <artifactId>cucumber-junit</artifactId>
            <version>7.8.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>io.qameta.allure</groupId>
            <artifactId>allure-junit5</artifactId>
            <version>${allure.version}</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>io.qameta.allure</groupId>
            <artifactId>allure-java-commons</artifactId>
            <version>${allure.version}</version>
        </dependency>
        <dependency>
            <groupId>io.qameta.allure</groupId>
            <artifactId>allure-commandline</artifactId>
            <version>${allure.version}</version>
            <type>pom</type>
        </dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>1.18.24</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>2.0.3</version>
        </dependency>
        <dependency>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-project-info-reports-plugin</artifactId>
            <version>3.4.1</version>
            <type>maven-plugin</type>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.10.1</version>
                <configuration>
                    <encoding>UTF-8</encoding>
                    <source>11</source>
                    <target>11</target>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.22.2</version>
                <configuration>
                    <testFailureIgnore>true</testFailureIgnore>
                    <argLine>
                        -javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar"
                    </argLine>
                    <systemProperties>
                        <property>
                            <name>junit.jupiter.extensions.autodetection.enabled</name>
                            <value>true</value>
                        </property>
                    </systemProperties>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>org.aspectj</groupId>
                        <artifactId>aspectjweaver</artifactId>
                        <version>${aspectj.version}</version>
                    </dependency>
                </dependencies>
            </plugin>
            <plugin>
                <groupId>io.qameta.allure</groupId>
                <artifactId>allure-maven</artifactId>
                <version>2.10.0</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <version>3.7.1</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <version>3.4.1</version>
            </plugin>
        </plugins>
    </build>
</project>

Логи сборки
mvn test

[INFO] Scanning for projects...
[INFO] 
[INFO] --------------------------< ru.vtb.at:prbsAT >--------------------------
[INFO] Building prbsAT 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ prbsAT ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ prbsAT ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ prbsAT ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ prbsAT ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 52 source files to C:\work\prbsAT\target\test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ prbsAT ---
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running inboxAPI.CreateApplicationsTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.385 s - in inboxUiApiWeb.applicationsDetailsTest
[INFO] Running inboxUiApiWeb.applicationsListTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.18 s - in inboxUiApiWeb.applicationsListTest
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  11.929 s
[INFO] Finished at: 2022-10-27T18:24:21+03:00
[INFO] ------------------------------------------------------------------------

Process finished with exit code 0

allure report

[INFO] Scanning for projects...
[INFO] 
[INFO] --------------------------< ru.vtb.at:prbsAT >--------------------------
[INFO] Building prbsAT 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- allure-maven:2.10.0:report (default-cli) @ prbsAT ---
[INFO] Allure installation directory C:\work\prbsAT/.allure
[INFO] Try to finding out allure 2.8.1
[INFO] Generate Allure report (report) with version 2.8.1
[INFO] Generate Allure report to C:\work\prbsAT\target\site/allure-maven-plugin
[INFO] Found results directory C:\work\prbsAT\target\allure-results
[INFO] Can't find information about categories.
[INFO] Generate report to C:\work\prbsAT\target\site\allure-maven-plugin
Report successfully generated to C:\work\prbsAT\target\site\allure-maven-plugin
[INFO] Report generated successfully.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.099 s
[INFO] Finished at: 2022-10-27T18:25:22+03:00
[INFO] ------------------------------------------------------------------------

Process finished with exit code 0

allure serve

[INFO] Scanning for projects...
[INFO] 
[INFO] --------------------------< ru.vtb.at:prbsAT >--------------------------
[INFO] Building prbsAT 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- allure-maven:2.10.0:serve (default-cli) @ prbsAT ---
[INFO] Allure installation directory C:\work\prbsAT/.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 C:\work\prbsAT\target\site/allure-maven-plugin
[INFO] Found results directory C:\work\prbsAT\target\allure-results
[INFO] Can't find information about categories.
[INFO] Generate report to C:\work\prbsAT\target\site\allure-maven-plugin
Generating report to temp directory...
Report successfully generated to C:\Users\matem\AppData\Local\Temp\8347896407780076874\allure-report
Starting web server...
2022-10-27 18:25:54.708:INFO::main: Logging initialized @1446ms to org.eclipse.jetty.util.log.StdErrLog
Server started at <http://10.187.6.63:61370/>. Press <Ctrl+C> to exit

Результат на скрине

Помогите пожалуйста, уже не знаю в какую сторону воевать(((

вот здесь вы сгенерировали аллюр

вот здесь вы по сути заново сгенерировали отчёт в темповый каталог и открыли его

вам нужно найти, где находится каталог allure-report от первого запуска генерации и в папке где этот репорт лежит запустить allure open

Пришлось перезапустить т.к. папка после второго запуска генерации удаляется

Итак

Report successfully generated to C:\work\prbsAT\target\site\allure-maven-plugin
cd /c/work/prbsAT/target/site/allure-maven-plugin

/c/work/prbsAT/target/site/allure-maven-plugin
$ allure open
Starting web server...
2022-10-27 18:42:14.421:INFO::main: Logging initialized @331ms to org.eclipse.jetty.util.log.StdErrLog
Could not serve the report
java.nio.file.NoSuchFileException: C:\work\prbsAT\target\site\allure-maven-plugin\allure-report
        at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:96)
        at java.base/sun.nio.fs.WindowsLinkSupport.getRealPath(WindowsLinkSupport.java:257)
        at java.base/sun.nio.fs.WindowsPath.toRealPath(WindowsPath.java:891)
        at java.base/sun.nio.fs.WindowsPath.toRealPath(WindowsPath.java:42)
        at io.qameta.allure.Commands.setUpServer(Commands.java:208)
        at io.qameta.allure.Commands.open(Commands.java:143)
        at io.qameta.allure.CommandLine.run(CommandLine.java:173)
        at java.base/java.util.Optional.orElseGet(Optional.java:369)
        at io.qameta.allure.CommandLine.main(CommandLine.java:92)

Если же зайти в темповую папку после второй генерации, правда не в неё саму, а на уровень выше, allure open запустить получается. Однако, результат такой же как на скрине, Allure report unknown

у вас в allure results есть хоть что-нибудь?

Да есть
image
Содержится в них что-то такое

{
  "uuid": "338ee700-6e22-4396-b31f-a58d2dd8e9fc",
  "name": "appDetailsTest",
  "children": [
    "f7d2256f-e77f-49d4-b854-d4bdc1afba26"
  ],
  "befores": [ ],
  "afters": [ ],
  "start": 1666885268854,
  "stop": 1666885269284
}

Вот что в одном из -result.json

{
  "uuid": "e650ab3f-1ddb-4b2d-827f-6917d9b1d28a",
  "historyId": "8ccb60936869f81a9950e0e7ca205803",
  "testCaseId": "[engine:junit-vintage]/[runner:inboxAPI.CreateApplicationsTest]/[test:createApplicationTest(inboxAPI.CreateApplicationsTest)]",
  "testCaseName": "createApplicationTest",
  "fullName": "inboxAPI.CreateApplicationsTest.createApplicationTest",
  "labels": [
    {
      "name": "junit.platform.uniqueid",
      "value": "[engine:junit-vintage]/[runner:inboxAPI.CreateApplicationsTest]/[test:createApplicationTest(inboxAPI.CreateApplicationsTest)]"
    },
    {
      "name": "host",
      "value": "LAPTOP-1JC4KB96"
    },
    {
      "name": "thread",
      "value": "30936@LAPTOP-1JC4KB96.main(1)"
    },
    {
      "name": "framework",
      "value": "junit-platform"
    },
    {
      "name": "language",
      "value": "java"
    },
    {
      "name": "package",
      "value": "inboxAPI.CreateApplicationsTest"
    },
    {
      "name": "testClass",
      "value": "inboxAPI.CreateApplicationsTest"
    },
    {
      "name": "testMethod",
      "value": "createApplicationTest"
    },
    {
      "name": "suite",
      "value": "inboxAPI.CreateApplicationsTest"
    }
  ],
  "links": [ ],
  "name": "createApplicationTest",
  "status": "passed",
  "stage": "finished",
  "description": "",
  "steps": [ ],
  "attachments": [ ],
  "parameters": [ ],
  "start": 1666885265500,
  "stop": 1666885268738
}

То есть вроде какая-то инфа есть, но отчет по ней кривой
В чем причина?

В общем ответ нашёлся на stackoverflow

плагин аллюра надо поменять следующим образом


<plugin>

    <groupId>io.qameta.allure</groupId>

    <artifactId>allure-maven</artifactId>

    <version>2.10.0</version>

    <configuration>

        <reportVersion>${allure.version}</reportVersion>

        <resultsDirectory>${project.build.directory}/allure-results</resultsDirectory>

        <reportDirectory>${project.build.directory}/allure-report</reportDirectory>

    </configuration>

</plugin>