By willcode4beer
via reddit.com
Published: Aug 23 2008 / 11:21
Should we use logging in unit tests?
I'm having a discussion about the use of log4j in junit tests. I am really against the idea. The way I see it, a log and a failing test both communicate information. Using both seems redundant.
Maybe my *real* problem is, using logs seems like a way to approach yellow instead of read/green.....
(I hate when I mis-spell a title)
Comments
doylecentral replied ago:
I favor reporting to logging for that sort of thing. Logs are something you look at when you are diagnosing. Reports are something you intend to see on a regular basis.
Voters For This Link (4)
Voters Against This Link (2)