我總是運行autospec
以同時運行功能和RSpec,但在本地計算機上運行所有功能通常非常耗時。我會在提交代碼之前運行每個功能。在Autospec中使用Cucumber在Ruby on Rails開發中傳遞選項
我想通過autospec
命令的參數。 autospec
顯然不直接接受參數。下面是autospec -h
輸出:
autotest [options]
options:
-h
-help You're looking at it.
-v Be verbose.
Prints files that autotest doesn't know how to map to
tests.
-q Be more quiet.
-f Fast start.
Doesn't initially run tests at start.
我有一個在config
cucumber.yml
目錄。我在Rails根目錄中也有rerun.txt
。 cucumber -h
給了我很多關於參數的信息。
如何針對標記爲@wip
的功能運行autospec
?我想我可以利用config/cucumber.yml
。有配置文件定義。我可以運行cucumber -p wip
僅運行@ wip-tagged功能,但我想用autospec
來執行此操作。
我很感激任何有關使用許多規格和功能文件的提示。
我* * OS X.看起來很有希望。 – 2010-01-19 11:21:31
我喜歡這不僅僅是wip功能。我將它與'--tags @ mytag'開關一起使用,以挑選特定的場景子集。 – phloopy 2010-06-08 01:11:54