【问题标题】:How to measure test running time using scalatest in Eclipse (Scala IDE)?如何在 Eclipse(Scala IDE)中使用 scalatest 测量测试运行时间?
【发布时间】:2015-07-20 01:53:22
【问题描述】:

我发现这个帖子How to measure and display the running time of a single test?

但它关注的是 sbt 方法而不是 Eclipse 方法。

【问题讨论】:

  • 答案中描述的最后一种方法(“Moreover...”)不依赖于 sbt 甚至 scalatest。

标签: eclipse performance scala unit-testing scalatest


【解决方案1】:

如果您想在“main”的 Eclipse 调用中使用 -Od 选项(或任何其他选项),请参阅 Runner 的 scaladoc。

您引用的答案中描述的最后一种方法(“Moreover...”)不依赖于 sbt 甚至 scalatest。

【讨论】:

    猜你喜欢
    • 2012-01-20
    • 1970-01-01
    • 2014-06-03
    • 1970-01-01
    • 2015-06-10
    • 2019-12-18
    • 2020-07-05
    • 1970-01-01
    • 2013-03-23
    相关资源
    最近更新 更多