我正在使用specs2生成html测试报告。但是,我每一个规格都有一个com.company.package.SomeSpec.html。是否可以为所有测试生成一个单一页面的html报告,或者至少生成一个链接到其他测试的index.html?
发布于 2014-01-30 22:41:32
这在“用户指南”( “如何创建索引” )中有介绍。
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)
}https://stackoverflow.com/questions/21468021
复制相似问题