I use for e2e test Protractor (with Jasmine), so it would be good to stay with Jasmine for testing in the unit tests. I build my application with gulp.
Now I want to additionally unit test my angularjs functions and my node.js functions. I could use for angular only functions karma (with jasmine) which was already setup for the front end on my generator.
But I'm a bit confused: I read several posts which state that you can't use karma for front & backend. And others which tell otherwise:
How to test nodejs backend code with Karma (testacular)
Question: Which test suite/(s) is/are good to do the unit tests for front & backend:
- Should I switch from Karma to Mocha, to have one suite?
- Or shall I leave the front end unit tests to Karma and use another testing suite e.g. mocha for the backend?
- Or is it possible and good to use karma for backend tests as well?
Aucun commentaire:
Enregistrer un commentaire