0
在工作和家中,我最近使用了很多Scala。我们使用Eclipse作为IDE和ScalaTest 2.0进行测试。Scalatest弃用警告
每当我运行单元测试,我得到这个消息:
WARNING: -p has been deprecated and will be reused for a
different (but still very cool) purpose in ScalaTest 2.0.
Please change all uses of -p to -R.
我的问题是双重的:
- 为什么这个消息出现?我已经有了ScalaTest 2.0,那么它试图告诉我什么?
- 是否有可能摆脱此警告?我们的政策是保持代码无任何警告,因为每个人都应该这样做。我无法在线或在StackOverflow上找到与此警告有关的任何信息。
为了完整起见,一个代码示例:
import org.scalatest.FunSuite
class WarningSpec extends FunSuite {
test("See if this gives a warning") {
assert(true)
}
}
这个问题已被解决了吗?我看到最新的。 –