【发布时间】:2011-05-22 02:41:20
【问题描述】:
当我使用 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
有没有办法在这种情况下获得漂亮的输出?
谢谢...
【问题讨论】:
标签: scala maven specs scalacheck