Running all your tests on every test run will eventually make your test runs slower and slower as you add more tests to your project, so what I usually do when I’m implementing a new feature is that I scope out the tests that are related to the feature I’m currently working on. Yes, it might take you a few more minutes to complete your implementation while writing tests, but I promise you that you will make up for that time in the long run if you count in bugfixes and future improvements on that feature.īut there are a few tricks you can apply to speed up your Unit Testing today, so here are my favourite tricks: I usually try to calm these concerns by asking these people to consider this time as a longterm investment. I actually think I write code faster with tests than without but that might come from experience and I respect that time is a concern some people might have against Unit Testing, especially in the beginning. One of the main reasons I hear for not writing tests is -"We don’t have the time!" and that it feels like it would take longer time to write code with test than without.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |