ci-reporter / ci_reporter

CI::Reporter is an add-on to popular test frameworks that allows you to generate XML reports
MIT License
343 stars 110 forks source link

Cucumber tests reporting ''pending' when they fail #92

Closed jphastings closed 11 years ago

jphastings commented 11 years ago

Some of my cucumber tests have multiple 'Then' sections, eg:

Then I am given a JPEG image
And it is 200px wide

In the example above I am not being given a JPEG image, the 'And it is 200px wide' step is being marked as pending, which marks the scenario as pending and sending Jenkins the JUnit XML that the test is pending and not failed.

I am executing bundle exec rake -r ci/reporter/rake/cucumber ci:setup:cucumber features from jenkins (after RVM setup and bundle install), but that is all. Am I doing something wrong or is ci_reporter incorrectly reporting the status of the scenario?

jphastings commented 11 years ago

Ahhh. One of my tests is pending, but all of them are being marked as pending. This is the step_definitions thing listed in the Readme. Carry on, nothing to see here.