Sunday, November 19, 2023
Ah, so that's the definition of a unit test
Originally, the term āunitā in āunit testā referred not to the system under test but to the test itself. This implies that the test can be executed as one unit and does not rely on other tests running upfront (see here and here).
Via The big TDD misunderstanding (2022) | Hacker News, The Big TDD Misunderstanding. š”Originally, the term āunitā in āunitā¦ | by Oliver Wolf | Mediu (also via Lobste.rs)
I think I finally have the answer to my question, āwhat is a āunit test?āā and ā¦ wow! And to think I was doing that all along at The Enterprise.
When I wrote the regression tests, I set each test up to be independentāeach test got its own unique test data in the various ādatabasesā we were using (we weren't really using a database, but custom binary data files based off a periodic database dump) and in theory, we could have run the tests in random order. In fact, during my last year there, I almost added that feature to the regression test, but by then, I was so burned out with The Processā¢ that I just never bothered. It's a shame that, because I think it would have been an interesting form of test to perform.