Rake stats and Cucumber

前端 未结 5 635
陌清茗
陌清茗 2020-12-29 10:03

I\'m using Cucumber with RSpec in a Rails project. When I use the \"rake stats\" task, I get the following :

+----------------------+-------+-------+--------         


        
5条回答
  •  独厮守ぢ
    2020-12-29 10:51

    Although this is an extremely old question, it is still first when googling "rails rake stats cucumber" and the answers are misleading or outdated.

    For future googlers, all you need to do is run

    $ rails generate cucumber:install
    

    This will create the necessary files, and specifically the lib/tasks/cucumber.rake file, which adds "Cucumber Features" to the rake stats output.

提交回复
热议问题