1
當我想運行測試標籤我用如何在使用bundle exec rspec spec時運行rspec標記的測試?
rspec spec --tag smoke_test_not_present
我得到一個錯誤,我的系統上較舊的寶石。一個熟悉的錯誤。
被列出,通常工作解決的辦法是預先掛起與bundle exec
我想運行標記測試。
所以我做的:
bundle exec rspec spec --tag smoke_test_not_present_this_does_not_exist
但隨後所有的測試運行,不管我引用(不存在)的標籤。
我得到:
$ bundle exec rspec spec --tag smoke_test_not_present_this_does_not_exist
Run options: include {:focus=>true, :smoke_test_not_present=>true}
All examples were filtered out; ignoring {:focus=>true, :smoke_test_not_present=>true}
.......................^C
Exiting... Interrupt again to exit immediately.