All talks

Your Unit Tests are Trying To Tell You Something

Devoxx 2023Jun 20230 views

Speaker

About this talk

For more info on the next Devoxx UK event πŸ‘‰ www.devoxx.co.uk If tests are hard to write, the production design is crappy - goes an old saying. Indeed, writing unit tests gives you one of the most comprehensive, yet brutal, feedback about the design of your production code, but if it comes too late, many developers can’t stand it anymore and they will either stop testing or test more superficially. At the other extreme, others struggle to write contrived, fragile tests full of mocks that end up frustrating more than helping them. This talk reviews the main hints that unit tests provide you, from the most obvious improvements to some of the most subtle design principles.