4 ms·
I sometimes use unit tests to fill in gaps. I just caught a function with almost full coverage except for an if statement. Playwright e2e tests are harder to
by eternityforest 17d ago
I sometimes use unit tests to fill in gaps. I just caught a function with almost full coverage except for an if statement.
Playwright e2e tests are harder to maintain than pytest code, so I wrote a test just for that one case, and while I was at it, a few other input strings that seemed like they could be problems.
If the function had no test coverage at all, I probably would have tried to get it with an integration test, because that would mean the callers also weren't getting tested.
- acedTrex 16d agoThe occasional unit test is fine. But you do not need for example `test_helper_test.go` that is just ridiculous. Its gotten so bad I decided to throw the baby out with the bathwater so to speak and focus on the high value places instead of trying adjudicate every individual usage