4 ms·
What it does is show up something that is true anyway for unit tests: automated tests are software and they should be designed like it. It might affect multipl
by rkangel 6y ago
What it does is show up something that is true anyway for unit tests: automated tests are software and they should be designed like it.
It might affect multiple tests, but all you should have to change is one or two places in some shared code pulled in by those tests. Too many tests have too much repeated code, and so become expensive to maintain, exactly like normal code. Refactor, think about shared functions etc. exactly as you would do with your production code.