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

RSpec base formatter #34

Closed heathkit closed 13 years ago

heathkit commented 13 years ago

RSpec 2 allows you to use multiple formatters. I'm wanting to use a custom documentation formatter in my project along with CI reporter. However, the two ci_reporter formatters both delegate to either the documentation formatter or the base text formatter. This means if I make my own documentation formatter, I get the two outputs interleaved.

So I made a CI RSpec formatter that delegates to the base formatter. This will keep it from printing anything and interfering with my custom text formatters.

Though, I think for RSpec 2 at least, it might make sense to have the CI RSpec formatter not delegate at all, since the end user can use whatever other formatters as they want.

nicksieger commented 13 years ago

Thanks!