Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Scala 如何从specs+;斯卡拉切克和马文?_Scala_Maven_Specs_Scalacheck - Fatal编程技术网

Scala 如何从specs+;斯卡拉切克和马文?

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

当我使用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 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