2016-12-02 3 views
0

正常に動作するjunitを使用してセレンティプロジェクトを作成しましたが、生成されるレポートには書式がありません。下記参照。キュウリを使用して静穏プロジェクトを作成すると、レポートは期待どおりにフォーマットされます。レポートを正しく表示するために必要な追加ステップはありますか?私がしたのは、maven(mvn archetype:generate -Dfilter = serenity)を使ってプロジェクトを作成することだけでした。それをIntelliJにインポートして実行し、JUnitのセレンティスBDD - 書式設定されていない

report sampleを実行します。

マイPOMファイルがある

http://maven.apache.org/xsd/maven-4.0.0.xsd "> 4.0.0

<groupId>serenityJUnit</groupId> 
<artifactId>serenityJUnitDemo</artifactId> 
<version>1.0-SNAPSHOT</version> 
<packaging>jar</packaging> 

<name>Serenity project with JUnit and WebDriver</name> 

<properties> 
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
    <serenity.version>1.1.38</serenity.version> 
    <webdriver.driver>firefox</webdriver.driver> 
</properties> 

<repositories> 
    <repository> 
    <snapshots> 
    <enabled>false</enabled> 
    </snapshots> 
    <id>central</id> 
    <name>bintray</name> 
    <url>http://jcenter.bintray.com</url> 
    </repository> 
</repositories> 
<pluginRepositories> 
    <pluginRepository> 
    <snapshots> 
    <enabled>false</enabled> 
    </snapshots> 
    <id>central</id> 
    <name>bintray-plugins</name> 
    <url>http://jcenter.bintray.com</url> 
    </pluginRepository> 
</pluginRepositories> 

<dependencies> 
    <dependency> 
     <groupId>net.serenity-bdd</groupId> 
     <artifactId>serenity-core</artifactId> 
     <version>${serenity.version}</version> 
    </dependency> 
    <dependency> 
     <groupId>org.slf4j</groupId> 
     <artifactId>slf4j-simple</artifactId> 
     <version>1.7.7</version> 
    </dependency> 
    <dependency> 
     <groupId>net.serenity-bdd</groupId> 
     <artifactId>serenity-junit</artifactId> 
     <version>${serenity.version}</version> 
     <scope>test</scope> 
    </dependency> 
    <dependency> 
     <groupId>junit</groupId> 
     <artifactId>junit</artifactId> 
     <version>4.12</version> 
     <scope>test</scope> 
    </dependency> 
    <dependency> 
     <groupId>org.assertj</groupId> 
     <artifactId>assertj-core</artifactId> 
     <version>1.7.0</version> 
    </dependency> 
</dependencies> 
<build> 
    <plugins> 
     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-surefire-plugin</artifactId> 
      <version>2.18.1</version> 
      <configuration> 
       <skip>true</skip> 
      </configuration> 
     </plugin> 
     <plugin> 
      <artifactId>maven-failsafe-plugin</artifactId> 
      <version>2.18.1</version> 
      <configuration> 
       <includes> 
        <include>**/*Test.java</include> 
        <include>**/Test*.java</include> 
        <include>**/When*.java</include> 
        <include>**/*Story.java</include> 
       </includes> 
       <argLine>-Xmx512m</argLine> 
       <systemPropertyVariables> 
        <webdriver.driver>${webdriver.driver}</webdriver.driver> 
       </systemPropertyVariables> 
      </configuration> 
      <executions> 
       <execution> 
        <goals> 
         <goal>integration-test</goal> 
         <goal>verify</goal> 
        </goals> 
       </execution> 
      </executions> 
     </plugin> 
     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-compiler-plugin</artifactId> 
      <version>3.2</version> 
      <configuration> 
       <source>1.7</source> 
       <target>1.7</target> 
      </configuration> 
     </plugin> 
     <plugin> 
      <groupId>net.serenity-bdd.maven.plugins</groupId> 
      <artifactId>serenity-maven-plugin</artifactId> 
      <version>${serenity.version}</version> 
      <executions> 
       <execution> 
        <id>serenity-reports</id> 
        <phase>post-integration-test</phase> 
        <goals> 
         <goal>aggregate</goal> 
        </goals> 
       </execution> 
      </executions> 
     </plugin> 
    </plugins> 
</build> 

+0

すべてソートされました。それは私がセレンティで次の行をコメントしたときに働いた – user3803807

+0

#あなたのriequirements階層をカスタマイズする #serenity.requirement.types = feature、story – user3803807

答えて

0

が働いていましたプロパティファイルの次の行をコメントアウトしたとき

riequirements階層をカスタマイズする

serenity.requirement.types =機能、ストーリー

関連する問題