DEV Community

loading...

Discussion on: How do You do testing?

Collapse
jcsh profile image
Justin Ho Author

Nice! I've used cypress a little before. How stringent would you say you test on your personal projects? Do you test every element?

Collapse
equimper profile image
Emanuel Quimper

I tdd the backend but for the front end, I test only the big features. I dont gonna test like html element etc. But example I use react a lot, I will test some features etc. But if I receive complain for a bug etc, for sure I will add test for this feature after that.

I will say test the one you know can bug, test the fact then you show a h1 with the title I dont think this is the best one to do. Don't chase the 100% coverage

Thread Thread
jcsh profile image
Justin Ho Author

That's great advice! Thanks Emanuel!