Click here to Skip to main content
15,886,919 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.

 
GeneralRe: e-bike Pin
RickZeeland1-Sep-22 8:54
mveRickZeeland1-Sep-22 8:54 
GeneralRe: e-bike Pin
Slow Eddie2-Sep-22 4:19
professionalSlow Eddie2-Sep-22 4:19 
GeneralUnit Testing Book Pin
Kevin Marois1-Sep-22 7:19
professionalKevin Marois1-Sep-22 7:19 
GeneralRe: Unit Testing Book PinPopular
Marc Clifton1-Sep-22 7:40
mvaMarc Clifton1-Sep-22 7:40 
GeneralRe: Unit Testing Book Pin
Kevin Marois1-Sep-22 16:05
professionalKevin Marois1-Sep-22 16:05 
GeneralRe: Unit Testing Book Pin
haughtonomous1-Sep-22 21:25
haughtonomous1-Sep-22 21:25 
GeneralRe: Unit Testing Book Pin
Kate-X2573-Sep-22 0:31
Kate-X2573-Sep-22 0:31 
GeneralRe: Unit Testing Book Pin
OriginalGriff3-Sep-22 0:39
mveOriginalGriff3-Sep-22 0:39 
It allows you to have a framework to test individual components (down to method level) to ensure that they work as intended.
And that means when you make a change later, you can run the same tests again and pick up any inadvertent changes you may have made.

I used to do this manually: I created tester projects which allowed me to check the "black box" functionality of my class, controls, and so forth so when I used them in real projects I had a high degree of certainty that they worked, and to test my later fixes to make sure I didn't introduce a bug.
I started doing this after a colleague fixed "bug A" for a client, who later found "bug B". She fixed that, and the client found "bug A" was back. Fixed ... hello "bug B"! After about 6 loops of this the client was not impressed at all ... formalized testing would have meant that the tests for both bugs would (or at least should) have been done prior to release, and the customer shouldn't have seen a problem.

Units tests formalize that, make it a lot easier to regulate, monitor, and perform.
Honestly, if you care about code quality I'd recommend you give them a try. Properly done, they can save a lot of grief.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: Unit Testing Book Pin
Kate-X25722-Sep-22 22:26
Kate-X25722-Sep-22 22:26 
GeneralRe: Unit Testing Book Pin
NigelBasel1-Sep-22 21:53
NigelBasel1-Sep-22 21:53 
GeneralRe: Unit Testing Book Pin
Peter Adam1-Sep-22 21:16
professionalPeter Adam1-Sep-22 21:16 
GeneralRe: Unit Testing Book Pin
haughtonomous1-Sep-22 21:53
haughtonomous1-Sep-22 21:53 
GeneralRe: Unit Testing Book Pin
Vaso Elias2-Sep-22 3:38
Vaso Elias2-Sep-22 3:38 
GeneralRe: Unit Testing Book Pin
pafabian2-Sep-22 5:03
pafabian2-Sep-22 5:03 
GeneralRe: Unit Testing Book Pin
OriginalGriff2-Sep-22 5:05
mveOriginalGriff2-Sep-22 5:05 
GeneralRe: Unit Testing Book Pin
Michael Schegg5-Sep-22 3:03
Michael Schegg5-Sep-22 3:03 
GeneralThere is a new Winnie the Pooh movie! Pin
OriginalGriff1-Sep-22 6:55
mveOriginalGriff1-Sep-22 6:55 
GeneralRe: There is a new Winnie the Pooh movie! Pin
BernardIE53171-Sep-22 8:48
BernardIE53171-Sep-22 8:48 
GeneralRe: There is a new Winnie the Pooh movie! Pin
DRHuff1-Sep-22 14:15
DRHuff1-Sep-22 14:15 
GeneralRe: There is a new Winnie the Pooh movie! Pin
Daniel Pfeffer2-Sep-22 0:17
professionalDaniel Pfeffer2-Sep-22 0:17 
GeneralRe: There is a new Winnie the Pooh movie! Pin
Daniel Pfeffer2-Sep-22 0:28
professionalDaniel Pfeffer2-Sep-22 0:28 
GeneralRe: There is a new Winnie the Pooh movie! Pin
Kirk 103898212-Sep-22 5:43
Kirk 103898212-Sep-22 5:43 
GeneralRe: There is a new Winnie the Pooh movie! Pin
dandy723-Sep-22 10:30
dandy723-Sep-22 10:30 
GeneralCCC nudge Pin
pkfox1-Sep-22 0:16
professionalpkfox1-Sep-22 0:16 
GeneralRe: CCC nudge Pin
Kornfeld Eliyahu Peter1-Sep-22 0:24
professionalKornfeld Eliyahu Peter1-Sep-22 0:24 

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.