Getting started with Jasmine

Jasmine is a behavior-driven development framework for testing JavaScript code.
It has a clean, obvious syntax so that you can easily write tests.

Installation

meteor add sanjo:jasmine

You also need to install a Velocity Reporter package to see the test results.

meteor add velocity:html-reporter

Try out the example

Try out the Jasmine leaderboard example to get a first impression on how you test your application with Jasmine.

Learn Jasmine

Use the official Jasmine documentation to learn how to use Jasmine. You should use it as reference until you have mastered all the features that you need.

If you are new to testing, you can consider to do the Udacity JavaScript Testing course that uses Jasmine.

To learn more about testing with Meteor specifically you should buy the Meteor Testing Manual. It's the book, written by Xolv.io (the people behind Velocity) where we share our expert knowledge on testing with Meteor. By buying the book you also support the further development of Velocity.

Contribute

Velocity and sanjo:jasmine is an ongoing open-source effort. We appreciate any help. You can contribute by reporting issues, spread the word, improving the documentation and pay us for work to improve testing with Meteor.

Troubleshooting

Each test mode (except server unit mode) creates a log file in the folder .meteor/local/log/. If something is not working you should have a look in the log file.

You can also start you app with VELOCITY_DEBUG=1 meteor to get debug information by all the Velocity packages.

If you need help, look for an existing GitHub issue that describes your problem. If you don't find one that is exactly the same issue, create a new one.