2017-12-02 1 views
1

Maven, Junit4, Appium 및 Idea가 포함 된 Java에서 Allure2를 사용하고 있습니다.결과 표시 이름이 표시되지 않음

:

@DisplayName("It Should Choose An Assets Under 5k") 
@Severity(SeverityLevel.NORMAL) 
@Test(timeout = tenMinutes) 
public void ItShouldChooseUnder5k(){ 

내가 얻을 보고서에서 보고서에 DisplayNames이 표시되지 않는 : 여기

<dependency> 
     <groupId>junit</groupId> 
     <artifactId>junit</artifactId> 
     <version>4.12</version> 
    </dependency> 
    <dependency> 
     <groupId>io.qameta.allure</groupId> 
     <artifactId>allure-junit4</artifactId> 
     <version>2.0-BETA19</version> 
     <scope>test</scope> 
    </dependency> 
    <dependency> 
     <groupId>io.appium</groupId> 
     <artifactId>java-client</artifactId> 
     <version>5.0.4</version> 
     <exclusions> 
      <exclusion> 
       <groupId>com.google.guava</groupId> 
       <artifactId>guava</artifactId> 
      </exclusion> 
     </exclusions> 
    </dependency> 
    <dependency> 
     <groupId>com.google.guava</groupId> 
     <artifactId>guava</artifactId> 
     <version>21.0</version> 
    </dependency> 
    <dependency> 
     <groupId>org.slf4j</groupId> 
     <artifactId>slf4j-api</artifactId> 
     <version>1.7.5</version> 
    </dependency> 
    <dependency> 
     <groupId>org.slf4j</groupId> 
     <artifactId>slf4j-log4j12</artifactId> 
     <version>1.7.5</version> 
    </dependency> 

<plugin> 
      <groupId>io.qameta.allure</groupId> 
      <artifactId>allure-maven</artifactId> 
      <version>2.9</version> 
     </plugin> 
     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-jar-plugin</artifactId> 
      <version>2.6</version> 
      <executions> 
       <execution> 
        <goals> 
         <goal>test-jar</goal> 
        </goals> 
       </execution> 
      </executions> 
     </plugin> 
     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-dependency-plugin</artifactId> 
      <version>2.10</version> 
      <executions> 
       <execution> 
        <id>copy-dependencies</id> 
        <phase>package</phase> 
        <goals> 
         <goal>copy-dependencies</goal> 
        </goals> 
        <configuration> 
         <outputDirectory>${project.build.directory}/dependency-jars/</outputDirectory> 
        </configuration> 
       </execution> 
      </executions> 
     </plugin> 

테스트입니다 : 여기

내 pom.xml 파일입니다 ItShouldChooseUnder5k

나는 또한 얻는다 :

ALLURE REPORT 알 수 없음 - 알 수 없음 (알 수 없음)

내 보고서가 불명확하거나 DisplayNames가 표시되지 않는 이유가 있습니까? 또한 심각도 플래그를 무시합니다.

DisplayName이 xml 결과에 있어야합니까?

답변

0

알루ure 결과 dir이 아니라 target/surefire-reports가 아닌 allure 서버를 호출해야하는 것으로 밝혀졌습니다.

관련 문제