2017-12-02 30 views
1

私はMaven、Junit4、Appium、IdeaのJavaでAllure2をエディタとして使用しています。ここで表示結果に表示名が表示されない

は私のpom.xmlである:ここでは

<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> 

はテストです:

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

私は私が手報告書で報告書でDisplayNamesが表示されませんItShouldChoiceAdder5k (未知)

私のレポートが不明である、またはDisplayNamesが表示されない理由はありますか? また、Severity Flagsも無視されます。

DisplayNameはxml結果にする必要がありますか?

答えて

0

奇妙な結果のdirではなく、ターゲット/確実なレポートで魅力のサーバーを呼び出す必要があることが判明しました

関連する問題