2014-01-30 5 views
1

specs2를 사용하여 html 테스트 보고서를 생성하고 있습니다. 하지만, 하나당 com.company.package.SomeSpec.html이 나옵니다. 모든 내 테스트에 대한 단일 페이지 html 보고서를 생성하거나 atleast를 생성하여 다른 테스트에 연결되는 index.html을 생성 할 수 있습니까?Specs2 : HTML 보고서를 생성 하시겠습니까?

답변

3

이 사용 설명서에 설명되어 "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) 
}