Scenario failure in cucumber After hook still shows Test Results of all green

I'm explicitly failing a scenario using scenario.fail! in a cucumber After hook. The problem that I see is that the Test Results window that lists all features/scenarios/steps shows all green for the Test Results when I expect it to fail the scenario  and show red.

The console output does shows the failed scenario correctly:


C:\Ruby193\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:\Ruby193\bin/cucumber C:/git/Code/IBT/Features --format Teamcity::Cucumber::Formatter --expand --tags @SAT29 --color -r features
Testing started at 10:35 AM ...
Tag: @@SAT29
1 scenario (1 failed)
12 steps (12 passed)
0m36.913s

Process finished with exit code 1


Is there something that I can do to get the Test Results to show the failed scenario?
0

Please sign in to leave a comment.