Scalatest中有什么东西允许我通过println声明测试输出到标准输出吗?
println
到目前为止,我一直在使用FunSuite with ShouldMatchers.
FunSuite with ShouldMatchers
例如,我们如何检查打印输出
object Hi { def hello() { println("hello world") } }
scala scalatest
scala ×1
scalatest ×1