如何為RSpec指定多個目錄以從中拉出測試?

[英]How can I specify multiple directories for RSpec to pull tests from?


I have some vendored gems that are being developed in tandem with my project and i'd like to be tell rspec to run the tests for those gems as well as those for my main app. Is there a simple way to do this?

我有一些與我的項目同時開發的寶石,我想告訴rspec運行那些寶石的測試以及我的主應用程序的測試。有一個簡單的方法嗎?

1 个解决方案

#1


13  

just put spaces in between the directories like:

只需在目錄之間放置空格,例如:

rspec spec/model/location.rb ../gem/spec/requests/user.rb

注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2012/07/23/16408ec11cb64a1a515c57cd6fbf9c6f.html



 
  © 2014-2022 ITdaan.com 联系我们: