Including Jasmine-node files in Karma runner

I currently have a set of javascript node.js files next to a bunch of β€œregular” Javascript files that I will send to the browser using Angular as the client side border. For unit testing, I use jasmine-node to test the server and use jasmine through Karma for my client-side files. Is there a way to include my jasmine-node files in Karma in order to have one test runner?

+4
source share
1 answer

I also have a node.js server with angular.js client code, and I use jasmine-node. I don't know if there is a way (or even desirable) to use jasmine-node to test your client code. I use karma (which used to be test), and it works great. All you have to do is create a configuration file that loads your project and angular.mock.js and points to your test files.

I'm sorry this doesn't exactly answer your question, but this is a painless testing method.

http://karma-runner.github.com/0.8/index.html

+1
source

All Articles