【发布时间】:2017-04-03 15:13:23
【问题描述】:
要在 Rails 中运行单个测试,我们通常会这样做:
rails test TEST=test/system/invitation_test.rb
但这不适用于系统测试。这也不起作用:
rails test:system TEST=test/system/invitation_test.rb
使用上述两个突击队,所有系统测试(文件)都会运行。
所以我的问题是,如何运行单个系统测试?
附带说明,要在 Rails 中运行(所有)系统测试,you need to append:system 到 test。
rails test:system
【问题讨论】:
标签: ruby-on-rails testing ruby-on-rails-5 system-testing ruby-on-rails-5.1