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

Duplicate Failures report printed to stdout #88

Closed pmahoney closed 10 years ago

pmahoney commented 11 years ago

I'm using rspec 2.12 and ci_reporter 1.8.3. I have the default rspec task in my Rakefile like this: RSpec::Core::RakeTask.new. I have at least one pending and failing test in my suite.

rake spec    => Pending, Failures, Finished in..., Failed examples
rake ci:setup:rspec spec    => Pending, Failures, Finished in..., Failed examples, Failures (again)

I see in rspec.rb it's calling #dump_failures. If I comment that line out, I do not get the duplicate Failures report.

Should I be configuring rspec in some way to not print its own summary? Seems that ci_reporter should not be going out of its way to do anything other than write the xml report, but perhaps there is a reason?

Thanks.

pmahoney commented 11 years ago

This is still happening with rspec 2.14 and ci_reporter 1.9.0

For the sake of anyone experiencing the same issue, I can recommend:

rspec_junit_formatter

It integrates into RSpec's custom formatter system and avoids the above duplication report output.

shepmaster commented 10 years ago

We are in the process of cleaning out old issues. Specifically, the next version of CI::Reporter is only going to support RSpec 2.14 and above. If this issue still applies to this version, please let us know, otherwise we're going to close this issue to focus on current problems. Thanks for your report!

shepmaster commented 10 years ago

Closing due to inactivity.