[Wtr-general] test_output

Charley Baker charley.baker at gmail.com
Thu Sep 14 06:12:53 EDT 2006


This sounds like the same idea as Adrian Lewis' post yesterday, about
adding a message to test::unit. There isn't a way to do this through
the test reporter unless you're talking about assertion strings which
can be added to assertion failures. You can also define your own
assertions using assert_block.
  assert_block "Couldn't do the thing" do
    do_the_thing
  end

Otherwise, use a logger to log your own messages to a file. Ruby comes
with logger as part of the standard libraries:
http://www.ruby-doc.org/stdlib/libdoc/logger/rdoc/

-Charley

On 9/14/06, Luke <luccasz at gmail.com> wrote:
>
> I generate html report by test report package just like in example, now I want to add some extra strings to test_out.txt file generated by report, is there a method to do so?
>
>
> Luke
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>


More information about the Wtr-general mailing list