Seperate htmlreports html file for unit and integration tests

18 views
Skip to first unread message

Sandeep Abhyankar

unread,
Apr 2, 2015, 8:19:25 PM4/2/15
to scalate...@googlegroups.com
We are using the scala maven plugin for htmlreporters. We get the index.HTML which has all the results. We have tagged the tests as UnitTest and IntegrationTests by extending org.scalatest.Tag.
The results from both unit and integration tests go to {project.build.directory}/html/scalatest/index.html

What i want is have a separate folder or file for Unit and integration tests.
Something like 
{project.build.directory}/html/scalatest/Unit/index.html
{project.build.directory}/html/scalatest/Integration/index.html 

or

{project.build.directory}/html/scalatest//unit.html
{project.build.directory}/html/scalatest//integration.html

I searched through many forums but could not find a solution. 

Is the above possible? 

Here is my current configuation

<plugin>
                  <groupId>org.scalatest</groupId>
                  <artifactId>scalatest-maven-plugin</artifactId>
                  <version>${scalatest-maven-plugin.version}</version>
                  <configuration>
                      <htmlreporters>${project.build.directory}/html/scalatest</htmlreporters>
                  </configuration>
              </plugin>



The versions are: 
<scala.version>2.10.4</scala.version>
<scalatest.version>2.2.2</scalatest.version>
<scala-maven-plugin.version>3.2.0</scala-maven-plugin.version>
<scalatest-maven-plugin.version>1.0</scalatest-maven-plugin.version>


Thanks
sandeep 
Reply all
Reply to author
Forward
0 new messages