3 ms·
Tests are akin to scientific experiments. They test hypothesis and try to falsify claims. They shouldn't be seen as ground truth, but ways to gain information a
by gchamonlive 2y ago
Tests are akin to scientific experiments. They test hypothesis and try to falsify claims. They shouldn't be seen as ground truth, but ways to gain information about what the system claims to be doing. In this sense it makes sense that tests will become obsolete or evolve with the system, because the model and domain upon which the system is based also evolves and changes with time.
- randomdata 2y agoThis is why I'm not sure more languages don't instil the idea of "public" and "private" tests like Go does. Your "public" tests should document the API for future programmers. This is the concrete contract that should never change, no matter what happens to the implementation. If these tests break, you've done something wrong. Your "private" tests are experiments that future programmers know can be removed if they no longer fit the direction of the application.
- kubanczyk 2y agoSo, test the compatibility guarantee (of your major number in semver). How is this formalized in Go?