Can a cucumber run my rspec-on-rails tests?

I have a small test project that I use to test water for a much larger project. I use rspec for rails for testing, but recently looked at Cucumber. It looks very good, but I'm wondering if there is a way for a cucumber to run my test tests or for rspec (autospec) to run my cucumber functions. I looked around broadly, but had not yet found a firm conclusion.

Thanks,

Mike

+3
source share
3 answers

I also experimented with cucumber. It supports autotest:

AUTOFEATURE=true autospec

This works with both the rspec test suite and cucumbers.

+4
source

Rake, , , :

desc 'Run rspec + cucumber'
task :build => [:spec, :features]

:

rake build

RSpec Cucumber , Rails, . .

+3

, , rspec - , , ( gherkin), rspec. https://github.com/jnicklas/turnip.

, rspec _spec.rb , rutabaga. https://github.com/simplybusiness/rutabaga

rspec bundle exec rspec .

+1
source

Source: https://habr.com/ru/post/1708268/


All Articles