Cucumber -- if a feature step has a problem the scenario fails but the progress bar is green

(Rubymine 2.0.1) I have a feature with some steps in it.  If I edit the step to include some broken ruby code (I typed the following)

When /^(?:|I )click (.+)$/ do |page_name|
  aaa.hellop
  visit path_to(page_name)
end

Note that there is no object named aaa

The test fails, but the progress bar remaqins green.  See the following for the test run output.  Also, how do I see the complete test output?  Is there a console?


C:\Ruby\bin\ruby.exe -e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift) "C:/Documents and Settings/hansonr/RubymineProjects/cuke5/script/cucumber" "C:/Documents and Settings/hansonr/RubymineProjects/cuke5/features/fred3.feature" --format Teamcity::Cucumber::Formatter --expand --name "fred3 produces a complete report" --color
Testing started at 3:39 PM ...

Skipped step

Skipped step

Skipped step
Failing Scenarios:
cucumber C:/Documents and Settings/hansonr/RubymineProjects/cuke5/features/fred3.feature:11 # Scenario: fred3 produces a complete report
1 scenario (1 failed)
3 steps (3 skipped)
0m2.546s

Process finished with exit code 1

1 comment
Comment actions Permalink

Please attach a screenshot of "Tests Tree". Most likely Cucumber cannot find step definitions for you steps so you see "Skipped step" notice in console and skipped test icon in tests tree.

0

Please sign in to leave a comment.