Link Details

Link 105881 thumbnail
User 209464 avatar

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)
  • 4
  • 2
  • 1562
  • 209

Comments

Add your comment
User 211956 avatar

doylecentral replied ago:

0 votes Vote down Vote up Reply

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.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (4)



Voters Against This Link (2)