Sounds great in theory but I'm currently making a class which draws an icon with a number centered on it and writing tests for the output is virtually impossible.
Hi @ComicPenius. Thanks for your opinion. There are certain parts of a system that are harder to test, like the User Interface. There are frameworks for that (WaitN, Selenium, etc). You should always ask yourself if automation in UI tests are worthwhile; maybe what you are doing cant be unit tested. Specially in Object Oriented programming you can apply Test Driven Development for making sure each object behaves the way you intend, I see the need of TDD on a daily basis. Hope this helps!
Best 5 minute explaination of TDD i have seen so far.
Could you recommend any good books?
mikaelohlsson 5 months ago
Sounds great in theory but I'm currently making a class which draws an icon with a number centered on it and writing tests for the output is virtually impossible.
ComicPenius 2 years ago
Hi @ComicPenius. Thanks for your opinion. There are certain parts of a system that are harder to test, like the User Interface. There are frameworks for that (WaitN, Selenium, etc). You should always ask yourself if automation in UI tests are worthwhile; maybe what you are doing cant be unit tested. Specially in Object Oriented programming you can apply Test Driven Development for making sure each object behaves the way you intend, I see the need of TDD on a daily basis. Hope this helps!
ocenteno 2 years ago
Thanks for sharing, this is a great intro!
zapjelly 2 years ago