[rspec-users] rspec "output which test it is running before running it"

David Chelimsky dchelimsky at gmail.com
Thu Feb 25 13:28:43 EST 2010


On Thu, Feb 25, 2010 at 11:47 AM, rogerdpack <rogerpack2005 at gmail.com> wrote:
> On Feb 25, 8:44 am, Matt Wynne <m... at mattwynne.net> wrote:
>> Do you mean --format specdoc ?
>
> Interesting.
> It appears that with both specdoc and --format nested, it outputs the
> test name *after* running it.  I would have expected the opposite.  Is
> this expected?

Actually it is (now that you mention it). The reason is that each
example reports whether it passed or failed, which it clearly can't
know until it's run.

Another solution for your issue would be to write a custom formatter:
http://wiki.github.com/dchelimsky/rspec/custom-formatters

HTH,
David

> Thanks.
> -r
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list