An empiric take to testing.
@xuapsdevFast, Robust, Accurate (WIP)Or how to love your tests again
View Slide
This isnot atalkaboutopinions
1 - We progressfaster with test
2 - Bad testscould be worstthan no tests
So, what is abad test froman empiricalpoint of view?
Slow tests
Slow testsFalse alarms
Slow testsFalse alarmsDifficult to read tests
Brittle testsSlow testsFalse alarmsDifficult to read tests
Brittle testsSlow testsFalse alarmsDifficult to read testsWhat else?
3 propertiesSpeedDetection ofregressionsResistanceto refactor
Speed
Resistance to refactor
Detection of regression
Resistance to refactorDetection ofregressionsSpeedEnd to end test Trivial testsBrittle tests
Oh boy my tests are really bad…
I am so happy that my tests areso good…
Lets get some data
DEMO
I need to start using this rightnow
How am I usingthis data?
To decide how to test something
Tune it!
Tune it!Resistance to refactorSpeed Detection of regressions
Tune it!Resistance to refactorSpeed Detection of regressionsResistance to refactorDetection ofregressionsSpeedEnd to end test Trivial testsBrittle tests
To decide if write atest is worthy ornot
No test is better than a bad testbut, then we need something else
Observability
@xuapsdev@[email protected]
Do you want an extra ball?
MaintainabilityExtra ball