loading...

re: Yet another reason to prefer unit tests 😇 VIEW POST

FULL DISCUSSION
 

I find much more frustration in e2e testing. I'd you write pure functions and stay away from DI, unit testing is relatively easy.

 

True, except when you have to write unit tests for an app where everything is extremely coupled and has 0 tests, which is exactly where I'm at right now :(

 

Agree. This is much more difficult with a spaghetti/legacy project :)

The other dilemma is while the developer may want to refactor something - that time/cost has to be factored in somewhere and often it's a difficult to sell to the client: 'if it ain't broke don't fix it...'

code of conduct - report abuse