Click here to Skip to main content
15,887,214 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: How much you feel happy after solve problem of anyone? Pin
PIEBALDconsult27-Jan-22 11:20
mvePIEBALDconsult27-Jan-22 11:20 
AnswerRe: How much you feel happy after solve problem of anyone? Pin
Slow Eddie27-Jan-22 11:24
professionalSlow Eddie27-Jan-22 11:24 
AnswerRe: How much you feel happy after solve problem of anyone? Pin
RickZeeland27-Jan-22 19:13
mveRickZeeland27-Jan-22 19:13 
GeneralRe: How much you feel happy after solve problem of anyone? Pin
honey the codewitch28-Jan-22 0:03
mvahoney the codewitch28-Jan-22 0:03 
QuestionI'm fairly old fashioned at times ... but should I embrace unit testing? Pin
OriginalGriff27-Jan-22 5:57
mveOriginalGriff27-Jan-22 5:57 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
RickZeeland27-Jan-22 6:11
mveRickZeeland27-Jan-22 6:11 
GeneralRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Marc Clifton27-Jan-22 7:50
mvaMarc Clifton27-Jan-22 7:50 
GeneralRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Davyd McColl27-Jan-22 21:44
Davyd McColl27-Jan-22 21:44 
I've heard this cry before: "the tests are brittle! every time we update prod code, we have to fix heaps of tests!" and it usually leads to people feeling that unit testing "doesn't work for them".

The situation you describe is usually indicative of just not having had someone with extensive unit-testing experience to help write the tests in a sustainable manner. It's not a swipe at the people writing the code - it's really easy to get to the state where an update to code breaks a hundred tests without the experience on how to mitigate that.

It's also easier (imo) to write sustainable tests if you're writing them first, because this drives your software design to be more testable - and often, produce more resilient tests.

Following SOLID principles helps a lot because it means you can mock out layers underneath the code being tested instead of relying on actual behaviors all the time. It also means you can focus testing on smaller units up-front.

If you decide to give it another go, try leading with this mindset: if these tests are brittle, how do we make it so that they aren't? What architectural/design changes should we do to facilitate resilient, informative tests?
------------------------------------------------
If you say that getting the money
is the most important thing
You will spend your life
completely wasting your time
You will be doing things
you don't like doing
In order to go on living
That is, to go on doing things
you don't like doing

Which is stupid.

GeneralRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
RickZeeland27-Jan-22 21:52
mveRickZeeland27-Jan-22 21:52 
GeneralRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Davyd McColl27-Jan-22 22:32
Davyd McColl27-Jan-22 22:32 
GeneralRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
RickZeeland27-Jan-22 22:57
mveRickZeeland27-Jan-22 22:57 
GeneralRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Davyd McColl27-Jan-22 23:05
Davyd McColl27-Jan-22 23:05 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
PIEBALDconsult27-Jan-22 6:20
mvePIEBALDconsult27-Jan-22 6:20 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Mircea Neacsu27-Jan-22 6:34
Mircea Neacsu27-Jan-22 6:34 
GeneralRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Marc Clifton27-Jan-22 7:51
mvaMarc Clifton27-Jan-22 7:51 
GeneralRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Mircea Neacsu27-Jan-22 8:01
Mircea Neacsu27-Jan-22 8:01 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Duncan Edwards Jones27-Jan-22 6:39
professionalDuncan Edwards Jones27-Jan-22 6:39 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
pkfox27-Jan-22 6:43
professionalpkfox27-Jan-22 6:43 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Gerry Schmitz27-Jan-22 7:02
mveGerry Schmitz27-Jan-22 7:02 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
kmoorevs27-Jan-22 7:02
kmoorevs27-Jan-22 7:02 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Greg Utas27-Jan-22 7:07
professionalGreg Utas27-Jan-22 7:07 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
theoldfool27-Jan-22 7:09
professionaltheoldfool27-Jan-22 7:09 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Marc Clifton27-Jan-22 7:53
mvaMarc Clifton27-Jan-22 7:53 
JokeRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
0x01AA27-Jan-22 8:48
mve0x01AA27-Jan-22 8:48 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
trønderen27-Jan-22 9:00
trønderen27-Jan-22 9:00 

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.