How to generate html reports using Scalatest?

New Scala and Scalatest user.

I've written some tests using the Scalatest library and I've run it. How can I get a dump of the test report in an html (or some other) format?

thx.

Answers


For an html Report, you'd use -h for Runner or sbt:

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

An HTML report requires ScalaTest 2.0. If you are using the Ant task or Maven plugin, there's special syntax for it as well. How are you running your tests?


In order to get the reports this configuration stanza did the trick for me:

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

Please see: http://www.scalatest.org/user_guide/using_the_scalatest_maven_plugin


Need Your Help

How to select a item from drop-down, with select class name

selenium selenium-webdriver

How to select a value from Drop-Down in DHTML Grid Using Selenium WebDriver?

Avoid Microsoft Office SDK installation as part of my app

c# visual-studio vsto

I have created a VSTO visual studio application in Visual Studio 2008. It's working fine and I wanted to create a installer for the same using Publish option. Now, I see that it creates the installer