4 ms·
I hate to say it, but practice has helped me in writing tests faster. I can't give you any advice on Rails and Django as I mostly do React tests. 1. I've built
by bobbytherobot 9y ago
I hate to say it, but practice has helped me in writing tests faster. I can't give you any advice on Rails and Django as I mostly do React tests.
1. I've built up "muscle memory" for common patterns.
2. I've learned where I'm over-testing and that I don't need to write as much.
3. I've altered how I write code in order to make it easier to test. A common sign it will be harder to test is if I get data from an outside source that I didn't provide to the function/class.