DEV Community

Discussion on: Do you aim for 80% code coverage? Let me guess which 80% you choose...

 
patryktech profile image
Patryk

What do you mean by web apps?

I mean I personally wouldn't use TDD to develop apps that are run on the web (essentially a buzzword for a website that has more functionality than an informative company or personal page, such as booking.com, a taxi booking app, etc. - anything with a lot of dynamic content).

I can use it for some functionality, but not the whole thing (in contrast to Obey the testing goat that advocates always using TDD).

Thread Thread
 
tomekbuszewski profile image
Tomek Buszewski

Such apps, in my opinion, should consist of modules. And a lot of modules, especially the ones that are just emitting API, can be done with TDD. It's a whole different story with front-end, but even there you can try TDD with E2E tests. Because you only define "handlers", and they can be defined before the coding starts.