3 ms·
I'm the only developer on my team concerned about writing tests. I don't have a lot of experience doing it, and I have no one who can review my tests. Is there
by mpnordland 7y ago
I'm the only developer on my team concerned about writing tests. I don't have a lot of experience doing it, and I have no one who can review my tests. Is there anything I can do?
- UK-Al05 7y agoLots of practice, and katas? Try writing tests to match requirements. Try writing tests, then refactoring to see if it doesn't break the test(still compiles)
- eitland 7y ago> Is there anything I can do? Yep. Start small. When planning, look for tests that will speed up your work now. Don't care about overall coverage, only that what you are working on now is reasonably tested. Always remember: if nobody has told you to test and what test to write then they are just a tool to help you. Your tests can work as both a - lab bench, keeping your code in place while you work on it - fall protection - a colleague that does pair programming with you, pointing out when you are about to forget something important If some advice you get doesn't make sense and you can ignore it, do that after trying to understand what it should help for. Michael Feathers book "Working Effectively with Legacy Code" might come in handy at some point.