Displaying 1 result from an estimated 1 matches for "log_test_name".
2006 Jun 23
1
Best practices in test logging
...een using following policy:
1. Log test name in every test_* method
I have a method that puts coloured test name in the log. The problem
is that
I have to invoke this method manually in each test method. And it
looks quite
ugly:
def test_reject_duplicate_account_name_on_signup
log_test_name("test_reject_duplicate_account_name_on_signup")
... # Rest of the test goes here
How to make Test::Unit log test name automatically?
2. Log failures using logger
A small replacement function for Test::Unit::Assertions::assert_block
is
enough to write ''Success...