新しい Scala および Scaltest ユーザー。
Scaltest ライブラリを使用していくつかのテストを作成し、実行しました。テスト レポートのダンプを html (またはその他の) 形式で取得するにはどうすればよいですか?
どうも。
HTML レポートの場合、ランナーまたは sbt に -h を使用します。
http://www.artima.com/docs-scalatest-2.0.RC1/#org.scalatest.tools.Runner $
HTML レポートには ScalaTest 2.0 が必要です。Ant タスクまたは Maven プラグインを使用している場合は、そのための特別な構文もあります。テストはどのように実行していますか?
レポートを取得するために、この構成スタンザは私のためにトリックを行いました:
<plugin>
<groupId>org.scalatest</groupId>
<artifactId>scalatest-maven-plugin</artifactId>
<version>1.0</version>
<configuration>
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
<junitxml>.</junitxml>
<filereports>TestSuite.txt</filereports>
</configuration>
<executions>
参照してください: http://www.scalatest.org/user_guide/using_the_scalatest_maven_plugin