-
-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing the server side code #59
Comments
Jasmine is already included in this repo, so there's no need to be using mocha. If you're looking to implement mocha, then you'll want to remove jasmine. Go ahead and check out Jasmine vs. Mocha on google to find several good reads on how they are competing test tools. |
Yes, I would prefer to only use one framework. My dabbling with mocha was primarily because I couldn't get jasmine to work on both client and server. And that is te actual question: How should I test the server code? I would love for this project to include examples of this. |
Karma + Jasmine is the framework set up for live BDD/TDD. There's quite a few tutorials out there. In this repo all you need to do is type |
The server code in this project is maybe not worth testing since most logic in handled by mongoose so to showcase server testing there should probably be more server logic. There is a jungle of tutorials for jasmine but I have not yet found a good one that works with both typescript and nodejs. There is the module jasmine-node-karma on npm but then you are restricted to jasmine 1.3.1. |
I'll be working closely with this over the next day or so, and I have a few solid tutorials saved already... but I'll update with the best or what I used. I'm shifting to testing both client and server with Karma + Jasmine. |
Just wanted to mention that our server tests are postponed until next week while we work some bugs out, but I haven't forgot. |
I'm interested in a way to test the server side code.
I have a more complex project started from this repo and there is essential logic in the server controllers that I really would like to have tests for.
I've experimented some with using mocha but then I get name collisions with jasmine identifiers. I would be nice to have jasmine all the way but I have not gotten that to work (yet).
The text was updated successfully, but these errors were encountered: