Здравствуйте!
Помогите пожалуйста разобраться как получить папку allure-results. Бьюсь над этим уже неделю.
Стек проекта Java+Maven+Cucumber+JUnit
кусочек pom-ника
<build>
<resources>
<resource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>com.github.temyers</groupId>
<artifactId>cucumber-jvm-parallel-plugin</artifactId>
<version>4.2.0</version>
<executions>
<execution>
<id>generateRunners</id>
<phase>generate-test-sources</phase>
<goals>
<goal>generateRunners</goal>
</goals>
<configuration>
<!-- Mandatory -->
<cucumberOutputDir>./target/</cucumberOutputDir>
<outputDirectory>${project.build.directory}/generated-test-sources/cucumber
</outputDirectory>
<!-- The directory, which must be in the root of the runtime classpath, containing your feature files. -->
<featuresDirectory>src/test/resources/features/</featuresDirectory>
<!-- List of package names to scan for glue code. -->
<plugins>
<plugin>
<name>json</name>
</plugin>
</plugins>
<glue>
<package>site1</package>
</glue>
<parallelScheme>FEATURE</parallelScheme>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
<forkCount>6</forkCount>
<reuseForks>true</reuseForks>
<includes>
<include>**/*IT.class</include>
</includes>
<argLine>
-javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar
-Dcucumber.options="--plugin io.qameta.allure.cucumber4jvm.AllureCucumber4Jvm"
</argLine>
<systemProperties>
<property>
<name>allure.results.directory</name>
<value>${project.build.directory}/allure-results</value>
</property>
</systemProperties>
<systemPropertyVariables>
<propertyName>propertyValue</propertyName>
<allure.results.directory>target/allure-results</allure.results.directory>
</systemPropertyVariables>
</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>
<configuration>
<resultsDirectory>${project.build.directory}/allure-results</resultsDirectory>
<reportDirectory>${project.build.directory}/allure-reports</reportDirectory>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<excludeDefaults>true</excludeDefaults>
<plugins>
<plugin>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-maven-plugin</artifactId>
<configuration>
<resultsDirectory>${project.build.directory}/allure-results</resultsDirectory>
<reportDirectory>${project.build.directory}/allure-reports</reportDirectory>
</configuration>
<version>2.6</version>
</plugin>
</plugins>
</reporting>
зависимости:
cucumber-junit - 1.2.6
junit-dataprovider - 1.13.1
junit - 4.12
cucumber-java - 1.2.5
cucumber-picocontainer - 1.2.5
cucumber-core - 1.2.5
selenium-java - 3.4.0
selenium-server - 3.4.0
selenium-api - 3.14.0
slf4j-simple - 1.7.30
java-client - 5.0.4
allure-maven-plugin -2.5
aspectjweaver - 1.8.4
allure-cucumber-jvm - 2.13.3
allure-cucumber4-jvm - 2.13.3
allure-cucumber-jvm-adaptor - 1.6.2
allure-java-commons - 2.13.3
allure-junit5 - 2.13.3
allure-junit-adaptor - 1.5.2
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
import org.junit.runner.RunWith;
Runner
@RunWith(Cucumber.class)
@CucumberOptions(
format = {"pretty", "html:target/site1/cucumber",
"json:target/cucumber.json",
"junit:target/cucumber.xml"},
features = {"src/test/resources/features"},
glue = {"site1.steps", "site1.support"}
)
public class BaseCucumberTest {
}
результаты запуска тестов
Results :
Tests run: 28, Failures: 0, Errors: 0, Skipped: 0
тесты запускаются, проходят, в папке surefire-reports есть данные а allure-results формироваться почему то не хочет
подскажите пожалуйста идеей, советом, почему
пробовала создавать файл allure.properties
содержимое allure.results.directory=target/allure-results
в папке …\src\test\resources
если добавить депенденси allure-testng в качестве эксперимента она создастся, но конечно по содержанию будет по сути пустая.