3 ms·
To be able to say to your bosses that you have 100% code coverage. No, I agree. Hitting the database is slower but not that much slower (at least if you use Po
by jeltz 5y ago
To be able to say to your bosses that you have 100% code coverage.
No, I agree. Hitting the database is slower but not that much slower (at least if you use PostgreSQL and do rollback after every test). And since the goal is correctness I think that this performance hit is small enough to be worth taking.