Re:Stop requiring only one assertion per unit test: Multiple...
by tinyspacewizard on Saturday November 05, 2022 @09:08AM
(#33481057)
Still a bit flaky. In an OOP language mocking is appropriate or in an FP language defunctionalization.
[ Parent
| on HN ]
Re:Stop requiring only one assertion per unit test: Multiple...
by mollerhoj on Saturday November 05, 2022 @01:35PM
(#33483616)
Heh yeah but it can be used to write tests that check your assumptions about a 3 party api. Granted, It'll only fail once the test are rerun without the cache, but it can still be a valuable technique. It can be valuable to have a testsuite that a) helps check assumptions when implementing the connection and b) helps locate what part of it later starts to behave unexpectedly.