문제

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?

도움이 되었습니까?

해결책

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)
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top