[rspec-devel] Multiple formatters

aslak hellesoy aslak.hellesoy at gmail.com
Sun Apr 29 15:22:26 EDT 2007


On 4/29/07, Dan North <dan at tastapod.com> wrote:
>
>  +1.
>
>  One thing I would add is html:/absolute/file/path vs
> rdoc:relative/path.rdoc.
>

The feature was implemented on trunk last week.

Whatever comes after the last colon is treated as a file name, and
Ruby's File.new will handle both relative and absolute paths. No extra
voodoo on our part is needed.

>  Also, can you guys check the file stuff works with windows paths too (e.g.
> html:/c:/temp/blah.html).
>

Affirmative

>  Cheers,
>  Dan
>
>  aslak hellesoy wrote:
>  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?
> _______________________________________________
> rspec-devel mailing list
> rspec-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-devel
>
>
>
> _______________________________________________
> rspec-devel mailing list
> rspec-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-devel
>


More information about the rspec-devel mailing list