Cucumber and Rails - printing scenarios as they pass
I'm using Cucumber to test my Rails app. Is there anyway to print the scenario description as the tests run? Thanks!
Sample run:
laptop:rails_proj mark$ rake cucumber
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -S bundle exec cucumber --profile default
Using the default profile...
............................................................开发者_如何学JAVA............................
20 scenarios (20 passed)
88 steps (88 passed)
0m0.593s
Loaded suite /usr/bin/rake
Started
Finished in 0.000174 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
I think it's the --profile option. I have mine set to "dev_report".
See here:
https://github.com/cucumber/cucumber/wiki/cucumber.yml
Are you using the Cucumber Rails gem ? It prints them by default for me...
Can you post a sample of one of yours tests? The output shows "0 tests, 0 assertions, 0 failures, 0 errors" which sounds like they aren't doing anything.
精彩评论