From: Kga Agk Date: 2009-06-19T21:27:51+09:00 Subject: Testing, collecting and printing of custom error messages I want to i want to store the messages n the assertions and print them in a cleen output. I am going to test a bunch of testes and i want to give a aoutput that puts the name of the test and success if it succeds, and if it has errors then it print name, error and a cleean short description of the errors. I youse Rspec, and i have initielized shoulda to. escribe "Echo" do include ... some stuff before :all do ... some startup stuff ... end after(:all) do ... #print collected errors, or othe reports end it "Err" do assert(false, "I want to store this error message") end end I have tried to use a seperate class ad written the assert like this. assert(false, errorReport.push("I want to store this error message")) But by doing that the message is printed bouth when the test fails and when it succeds, and i want it only if it fails. -- Posted via http://www.ruby-forum.com/.