[rspec-devel] Multiple formatters

aslak hellesoy aslak.hellesoy at gmail.com
Tue Apr 24 04:41:13 EDT 2007


Hi all,

RSpec supports multiple formatters, but currently you can only use one
at a time. I really need to use several at the same time.

I'd like to make RSpec handle several --format options. However, that
would require some rethinking of how/where output is written - it
can't all go to the same stream (file or stdout).

So I'm thinking of making --format take a composite argument:

--format html:/path/to/index.html --format rdoc:/path/to/index.rdoc
--format progress

If nothing comes after the format, output is STDOUT, so this would be
backwards compatible.

If we do this, we could also get rid of --failures - it would just be
a special formatter.

WDYT?


More information about the rspec-devel mailing list