Click here to Skip to main content
15,920,704 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: Unit Testing... yay or nay? Pin
Ravi Bhavnani20-Apr-24 10:48
professionalRavi Bhavnani20-Apr-24 10:48 
GeneralRe: Unit Testing... yay or nay? Pin
Daniel Pfeffer20-Apr-24 15:28
professionalDaniel Pfeffer20-Apr-24 15:28 
GeneralRe: Unit Testing... yay or nay? Pin
Jeremy Falcon21-Apr-24 5:07
professionalJeremy Falcon21-Apr-24 5:07 
GeneralRe: Unit Testing... yay or nay? Pin
Jeremy Falcon21-Apr-24 5:06
professionalJeremy Falcon21-Apr-24 5:06 
GeneralRe: Unit Testing... yay or nay? Pin
Ravi Bhavnani21-Apr-24 10:18
professionalRavi Bhavnani21-Apr-24 10:18 
GeneralRe: Unit Testing... yay or nay? Pin
Jeremy Falcon21-Apr-24 16:18
professionalJeremy Falcon21-Apr-24 16:18 
JokeRe: Unit Testing... yay or nay? Pin
Daniel Pfeffer21-Apr-24 22:22
professionalDaniel Pfeffer21-Apr-24 22:22 
AnswerRe: Unit Testing... yay or nay? Pin
lmoelleb20-Apr-24 22:39
lmoelleb20-Apr-24 22:39 
Sometimes I am lazy and skip them - typically when I am not quite sure I have the main "flow" worked out. It gives a short term benefit not spending time on them, but of course that has to be paid later - so I do at least make sure to write decoupled code that I can easily add the test. If I am reasonable certain of the flow, I write the test along with the code (sometimes even before as TDD, but that is rare). It is often much faster to itterate over a code block in the test than running an application.

And of course, when I do go back and write the tests I skipped I find a bug or two....

In general it works as an investment: loose an hour writing a test now, or waste a day at a later time due to lack of tests... Sometimes the hour now is worth more than the day in the future. It only becomes a problem if the cost of the day in the future isn't even considered when skipping the test.
GeneralRe: Unit Testing... yay or nay? Pin
Jeremy Falcon21-Apr-24 4:51
professionalJeremy Falcon21-Apr-24 4:51 
AnswerRe: Unit Testing... yay or nay? Pin
Nelson Goncalves Oct202221-Apr-24 20:31
Nelson Goncalves Oct202221-Apr-24 20:31 
GeneralRe: Unit Testing... yay or nay? Pin
Jeremy Falcon22-Apr-24 4:08
professionalJeremy Falcon22-Apr-24 4:08 
AnswerRe: Unit Testing... yay or nay? Pin
Private Dobbs21-Apr-24 20:46
Private Dobbs21-Apr-24 20:46 
GeneralRe: Unit Testing... yay or nay? Pin
Jeremy Falcon22-Apr-24 4:09
professionalJeremy Falcon22-Apr-24 4:09 
AnswerRe: Unit Testing... yay or nay? Pin
DT Bullock21-Apr-24 22:55
DT Bullock21-Apr-24 22:55 
GeneralRe: Unit Testing... yay or nay? Pin
haughtonomous21-Apr-24 23:14
haughtonomous21-Apr-24 23:14 
GeneralRe: Unit Testing... yay or nay? Pin
DT Bullock22-Apr-24 22:19
DT Bullock22-Apr-24 22:19 
GeneralRe: Unit Testing... yay or nay? Pin
Jeremy Falcon22-Apr-24 4:12
professionalJeremy Falcon22-Apr-24 4:12 
GeneralRe: Unit Testing... yay or nay? Pin
DT Bullock22-Apr-24 20:17
DT Bullock22-Apr-24 20:17 
GeneralRe: Unit Testing... yay or nay? Pin
Jeremy Falcon23-Apr-24 5:40
professionalJeremy Falcon23-Apr-24 5:40 
GeneralRe: Unit Testing... yay or nay? Pin
DT Bullock23-Apr-24 21:32
DT Bullock23-Apr-24 21:32 
AnswerRe: Unit Testing... yay or nay? Pin
Peter Shaw22-Apr-24 0:45
professionalPeter Shaw22-Apr-24 0:45 
GeneralRe: Unit Testing... yay or nay? Pin
Jeremy Falcon22-Apr-24 4:15
professionalJeremy Falcon22-Apr-24 4:15 
GeneralRe: Unit Testing... yay or nay? Pin
Peter Shaw22-Apr-24 4:32
professionalPeter Shaw22-Apr-24 4:32 
GeneralRe: Unit Testing... yay or nay? Pin
Jeremy Falcon22-Apr-24 4:47
professionalJeremy Falcon22-Apr-24 4:47 
AnswerRe: Unit Testing... yay or nay? Pin
K Personett22-Apr-24 3:46
K Personett22-Apr-24 3:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.