DEV Community

Discussion on: 10 Tips For Writing Better Tests

Collapse
 
patryktech profile image
Patryk

Great post.

I don't necessarily agree with the integration vs unit tests - it all depends on context.

If you use functional programming techniques, or write a library, you'll have a lot more unit tests, and that's great. If you do web development, then it makes sense to focus more on integration testing, as the framework you're likely using will have its own unit test suite that checks the single units, and you want to test your own code, not theirs.

Collapse
 
maxpou profile image
Maxence Poutord

Hey Patryk, thanks for the feedback.
You right. I wrote this in the context of a web application. I should have mention it :)