我在带有 Scala 2.10 的 Eclipse (Juno) 中使用 ScalaTest,并且 RunConfigurations 窗口能够运行测试文件、测试套件或测试包。当我在资源管理器窗口中右键单击包名称时,可以选择运行包(从而运行该包中的所有测试)。但是,当我这样做时,不会运行任何测试,它会显示:
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.
Run starting. Expected test count is: 0
DiscoverySuite:
Run completed in 57 milliseconds.
Total number of tests run: 0
Suites: completed 1, aborted 0
Tests: succeeded 0, failed 0, ignored 0, pending 0
All tests passed.
那么,我还需要做什么才能运行包中的所有测试?