Tests are written in IntelliJ Idea. In POM.xml added:

<properties> <aspectj.version>1.7.4</aspectj.version> <allure.version>{latest-allure-version}</allure.version> </properties> 

In dependencies block:

 <dependency> <groupId>ru.yandex.qatools.allure</groupId> <artifactId>allure-junit-adaptor</artifactId> <version>1.4.23</version> </dependency>` 

In the build block:

 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.18.1</version> <configuration> <testFailureIgnore>false</testFailureIgnore> <argLine> -javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar </argLine> <properties> <property> <name>listener</name> <value>ru.yandex.qatools.allure.junit.AllureRunListener</value> </property> </properties> </configuration> <dependencies> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>${aspectj.version}</version> </dependency> </dependencies> </plugin> </plugins> </build> 

reporting block:

 <reporting> <excludeDefaults>true</excludeDefaults> <plugins> <plugin> <groupId>ru.yandex.qatools.allure</groupId> <artifactId>allure-maven-plugin</artifactId> <version>2.2</version> <configuration> <resultsPattern>${project.build.directory}/allure-results</resultsPattern> <reportVersion>1.4.14</reportVersion> </configuration> </plugin> </plugins> </reporting>` 

Next I enter the command into the terminal: mvn clean test site

See the screen results of the team

The test was successful, but when you open the report, a text message is displayed, 0 test script executed:

enter image description here

What could be the problem?

    1 answer 1

    Most likely the problem is that different versions of the report and adapter are used. Try changing the version of the report in the Maven plugin to 1.4.23