4 ms·
We write tests to be able to change it in the future with certain degree of confidence that we don't break anything and - if so - what exactly You don't want t
by gaius 10y ago
We write tests to be able to change it in the future with certain degree of confidence that we don't break anything and - if so - what exactly
You don't want tests for that - you want a type system and a static analyzer.
- cm2187 10y agoBut only tests will tell you you are calculating something correctly.
- digi_owl 10y agoBut thats anathema to agile, yo. /s
- raldi 10y agoHow does that confirm to you that, say, your ratelimiter code is correctly processing the first three requests in a given minute, rejecting the fourth, and approving a fifth once another minute has passed?
- jon-wood 10y agoA type system and static analysis certainly allow you to stop writing a certain category of test as you no longer need to assert that a method being passed an object of the wrong type copes with that. It doesn't completely relieve of you the need to test though as a type system won't assert that the code you're writing actually fulfils the businesses requirement that nothing can be ordered for same day shipping after 11am.