相关疑难解决方法(0)

Scalatest - 如何测试println

Scalatest中有什么东西允许我通过println声明测试输出到标准输出吗?

到目前为止,我一直在使用FunSuite with ShouldMatchers.

例如,我们如何检查打印输出

object Hi {
  def hello() {
    println("hello world")
  }
}
Run Code Online (Sandbox Code Playgroud)

scala scalatest

27
推荐指数
3
解决办法
1万
查看次数

标签 统计

scala ×1

scalatest ×1