What is the standard way to include dependencies for your JavaScript tests?

I'm new to JavaScript, and I wonder what standard / recommended way to include dependencies (e.g. Jasmine, jQuery) when writing tests for the JavaScript library? I use Jasmine as a FWIW test environment. Is it possible, for example, to recommend including libraries in the source tree?

+4
source share
1 answer

I would advise you to start by simply including dependencies in the HTML runner file using <script> tags. This is not the only way, but it will help you get started faster than any other method.

In addition, since you are just starting out, you can also try Mocha. Here is an example of a mocha runner:

http://visionmedia.github.com/mocha/example/tests.html

0
source

All Articles