Is unit testing in AngularJs always worth effort? When should I write unit tests? I'm confused because I heard form more experienced developers that I should rather use E2E tests for testing my app, because it's easier to cover more functionality and you don't have to refactor tests to much after refactoring app. But I think that they are wrong and unit tests are important and you should write them from the begining.
My last question is, should I mock my API reponses in E2E tests or just use real backend?
Can somebody clarify these things for me ? On the internet I see a lot of basic introductions but they just show how to get started and write basic test.
Aucun commentaire:
Enregistrer un commentaire