Scala 如何从specs+;斯卡拉切克和马文?
当我使用IDEA运行Specs+Scalacheck测试时,我得到了漂亮的输出:Scala 如何从specs+;斯卡拉切克和马文?,scala,maven,specs,scalacheck,Scala,Maven,Specs,Scalacheck,当我使用IDEA运行Specs+Scalacheck测试时,我得到了漂亮的输出: Specification "CoreSpec" The core grammar should + parse any encoded string + fail to parse an empty encoded string + parse an expected empty string + fail on a non-empty string when expe
Specification "CoreSpec"
The core grammar should
+ parse any encoded string
+ fail to parse an empty encoded string
+ parse an expected empty string
+ fail on a non-empty string when expecting an empty string
+ parse well-formed coordinates
为了让我的测试能够与maven一起运行,我通常有:
class CoreSpecTest extends JUnit4(CoreSpec)
…但结果不是很令人满意:
Running CoreSpecTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.782 sec
Results :
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0
在这种情况下,有没有办法获得漂亮的输出
谢谢…我的项目有一些变通方法: f、 我有规格 类SomeSpec使用Textile扩展了HtmlSpecification{ .... } 类Some2Spec使用Textile扩展了HtmlSpecification{ .... } 我也有这样的Junit测试 @试验 类应用程序测试{
@Test
def testOk = {}
@Test
def printSpecs {
(new SomeSpec).reportSpecs
(new Some2Spec).reportSpecs
}
}
我知道这不是一个好的解决方案,所以
我认为最好是从maven迁移到sbt