0

新しい Scala および Scaltest ユーザー。

Scaltest ライブラリを使用していくつかのテストを作成し、実行しました。テスト レポートのダンプを html (またはその他の) 形式で取得するにはどうすればよいですか?

どうも。

4

2 に答える 2

1

HTML レポートの場合、ランナーまたは sbt に -h を使用します。

http://www.artima.com/docs-scalatest-2.0.RC1/#org.scalatest.tools.Runner $

HTML レポートには ScalaTest 2.0 が必要です。Ant タスクまたは Maven プラグインを使用している場合は、そのための特別な構文もあります。テストはどのように実行していますか?

于 2013-10-03T08:38:18.677 に答える
0

レポートを取得するために、この構成スタンザは私のためにトリックを行いました:

<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

于 2016-03-14T20:23:58.240 に答える