开发者

Getting Autotest to work with Cucumber

开发者 https://www.devze.com 2023-02-16 16:08 出处:网络
I\'m trying to setup autotest to work with cucumber but despite following the tutorials it always finishes with:

I'm trying to setup autotest to work with cucumber but despite following the tutorials it always finishes with:

0 tests, 0 assertions, 0 failures, 0 errors

I see from this blog post that I need to add something: http://monket.net/blog/2009/06/simple-example-of-autotest-cucumber-and-growl/

AUTOFEATURE=true

I wasn't sure where to add that so I tried the config/environment.rb file, and also the /config/environments/development.rb and test.rb file but it made no difference.

Anyone know how I can get autotest to run the cucumber tests? Right now I have no rspec tests, I'm starting with just cucumber.

Thanks开发者_运维百科


You can add AUTOFEATURE=true to autotest command when you fire the latter up. That'll run your specs first and cucumber tests second.

Be careful, though, as running cucumber as part of the autotest stuff will slow down the runtime considerably, especially if the browser it fires up is firefox.

0

精彩评论

暂无评论...
验证码 换一张
取 消