V
V
vadik_kmv2018-04-27 18:08:26
Java
vadik_kmv, 2018-04-27 18:08:26

How to connect Allure?

Colleagues, tell me, please, how to attach Allure to a Java + Maven test project on a local machine?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Eremin, 2018-04-27
@EreminD

Here

V
Valery Glukhovtsev, 2018-08-10
@valera-glukhovtsev

I used this documentation here - https://docs.qameta.io/allure/#_get_started
my pom:

...
<dependency>
  <groupId>io.qameta.allure</groupId>
  <artifactId>allure-junit4</artifactId>
  <version>2.6.0</version>
  <scope>test</scope>
  <type>jar</type>
</dependency>
<dependency>
  <groupId>io.qameta.allure</groupId>
  <artifactId>allure-java-commons</artifactId>
  <version>2.6.0</version>
  <type>jar</type>
</dependency>
...
<properties>
  <aspectj.version>1.9.1</aspectj.version>
  <allure.version>2.6</allure.version>
</properties>
...
<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.20</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>io.qameta.allure.junit4.AllureJunit4</value>
            </property>
          </properties>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>org.aspectj</groupId>
            <artifactId>aspectjweaver</artifactId>
            <version>1.9.1</version>
          </dependency>
        </dependencies>
      </plugin>
      <plugin>
        <groupId>io.qameta.allure</groupId>
        <artifactId>allure-maven</artifactId>
        <configuration>
          <reportVersion>2.0.1</reportVersion>
        </configuration>
</plugin>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question