there seems to be a bunch of different ideas on how to best use unit tests, even on programmers.SE, e.g., this answer:
programmers.stackexchange.com/a/299803/196610 "Since unit-tests capture the debugging, and testing effort into (potentially automate-able) code, it would make sense that more effort goes into them; the actual time taken shouldn't be much more than the debugging and testing one would do without writing the tests."