# RSpec --format --html:/path/to/file.html

**URL:** <https://www.ruby-forum.com/t/rspec-format-html-path-to-file-html/112359>\
**Category:** Rails\
**Created:** [August 17, 2007, 9:28pm UTC](https://www.ruby-forum.com/t/rspec-format-html-path-to-file-html/112359 "2007-08-17T21:28:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cskidmore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bb73d2/32.png) [@cskidmore](https://www.ruby-forum.com/u/cskidmore)\
**Post date:** [August 17, 2007, 9:28pm UTC](https://www.ruby-forum.com/t/rspec-format-html-path-to-file-html/112359/1 "2007-08-17T21:28:28Z")

</div>

I tried posting this to the RSpec news list but apparently there’s  
something wrong with my account. It never showed up as far as I can  
tell…

Greetings everyone. I’m learning RSpec and am pretty fresh to  
Ruby/Rails,  
but am so excited I can’t help jumping in. I’m running before I can  
walk  
here. 🙂

Yesterday I tried outputting test results to HTML instead of colorized  
plain text. It looked like there were some entries in the change log  
for  
the 1.0.5 release allowing RSpec to do what I wanted.

I tried adding a setting to spec.opts but it didn’t work to say the  
least.  
Here’s the change log entry:

- The --out option is gone. Use --format html:path/to/my.html instead  
(or  
similar).

1. Does this do what I think it should?
2. where can I find documentation on using spec.opts? The command line  
help doesn’t mention a “–format” option.

It looks like CI::Reporter [could] output XML format but can it be used  
independently?

I’m mining the documentation for related information but didn’t find it  
so  
far.

Thank you for your help in advance.
