问题描述
我用嵌套套件创建了一个Suite
。我想这将按顺序http://doc.scalatest.org/1.8/org/scalatest/Suites.html
class RepositoryTestController extends Suites {
new AnswersRepositorySpecs
new AnswersTransactionRepositorySpecs
new CassandraRepositorySpecs
new PartitionsOfATagRepositorySpecs
new PasswordRepositorySpecs
new PracticeQuestionsRepositorySpecs
new PracticeQuestionsTagsRepositorySpecs
new QuestionsAnsweredByAUserForATagSpecs
new QuestionsCreatedByAUserForATagSpecs
new SupportedTagsRepositorySpecs
new UserProfileAndPortfolioRepositorySpecs
new UsersRepositorySpecs
new UserTokenRepositorySpecs
}
运行这些测试时(通过按Ctrl+Shift+F10
中的IntelliJ
),我会看到提示Tests Passed 0
。
更新
我想问题可能是我还没有创建PlaySpec
。我尚未(部分)创建此类,因为我不知道如何创建Args
方法所需的run
。
class RepositorySpecs extends PlaySpec {
"Repository Specs" should {
"run all specs" in {
val specs = new RepositoryTestController()
specs.run(None) //run requires Args which I am unable to create. http://doc.scalatest.org/1.8/org/scalatest/Suites.html
}
}
似乎测试没有执行。如何运行测试?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)