7 ms·
Doesn't this approach make you update results of failing tests wholesale and possibly miss where a new result of some test is actually wrong? https://docs.rs/e
by scotty79 4y ago
Doesn't this approach make you update results of failing tests wholesale and possibly miss where a new result of some test is actually wrong?
https://docs.rs/expect-test/latest/expect_test/ https://docs.rs/expect-test/latest/expect_test/
- eru 4y agoAt Google the nickname for these kinds of tests was 'change detector tests'.
- mannykannot 4y agoIf you are saying this approach would tend to produce a lot of change-detector tests, then that is an issue, but I think scotty79 is making a different point: this approach would seem to make it easy to overlook any regressions that the latest change has created.
- eru 4y agoYes, and that's exactly the issue with change detector tests.
- imajoredinecon 4y agoYeah, the OP's counterargument is that you can filter down what goes into the test output. But at that point it seems not too different qualitatively from the traditional bottom-up approach where you just write assertions yourself, except that the framework does the job of populating the assertions' expected values.