运行单系统测试
Run single system test
要运行 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
虽然 rails test
如果你想 运行 你的系统测试似乎不起作用(你需要用 :system 附加测试),如果你只想 运行单次测试 似乎有效:
rails test test/system/my_little_test.rb
要运行 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
虽然 rails test
如果你想 运行 你的系统测试似乎不起作用(你需要用 :system 附加测试),如果你只想 运行单次测试 似乎有效:
rails test test/system/my_little_test.rb