Domanda

I am using specs2 to generate html test reports. But, I am getting one com.company.package.SomeSpec.html per spec. Is it possible to generate a single page html report for ALL my tests or atleast generate an index.html also which links to other tests?

È stato utile?

Soluzione

This is described in the User Guide, "How to create an index"

import org.specs2._
import runner.SpecificationsFinder._

class index extends Specification { def is =

  examplesLinks("Example specifications")

  // see the SpecificationsFinder trait for the parameters of the 'specifications' method
  def examplesLinks(t: String) = t.title ^ specifications().map(see)
}
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top