{"__v":25,"_id":"55bf2050e2eec72d00d8c4a4","category":{"__v":11,"_id":"55bf16593179dd1900a19521","pages":["55bf2050e2eec72d00d8c4a4","55bf690cad601c2b00762d06","55bf69538b83a53700445077","55bf698f8b83a5370044507a","55bf69b703d092210084c143","55bf6a0303d092210084c146","55c33c718713ec1900d17318","55c3407d8713ec1900d1731e","55c3408eb6e05719008a045a","55c34298b6e05719008a0464","55c342d68713ec1900d17327"],"project":"55a92d71cf45e1390093f321","version":"55a92d71cf45e1390093f324","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-08-03T07:20:57.407Z","from_sync":false,"order":1,"slug":"jasmine","title":"Jasmine"},"parentDoc":null,"project":"55a92d71cf45e1390093f321","user":"55a4738a68c7e20d0036d4de","version":{"__v":12,"_id":"55a92d71cf45e1390093f324","project":"55a92d71cf45e1390093f321","createdAt":"2015-07-17T16:29:37.746Z","releaseDate":"2015-07-17T16:29:37.746Z","categories":["55a92d72cf45e1390093f325","55b9aea1baf4cd2300bc56e7","55bf16593179dd1900a19521","55bf16b93179dd1900a19525","55bf16c53bbd4b17002c2369","55bf234703d092210084c07b","55bf2859ad601c2b00762c4c","55bf3217ad601c2b00762c69","55bf321b03d092210084c09d","55bf5ef78b83a5370044504e","55c345418713ec1900d1732d","55c3473057f7f32d0016ec0a"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-08-03T08:03:28.666Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"### Installation\n\n```bash\nmeteor add sanjo:jasmine\n```\n\nYou also need to install a [Velocity Reporter package](https://github.com/meteor-velocity/velocity#reporters) to see the test results.\n\n```bash\nmeteor add velocity:html-reporter\n```\n\n### Try out the example\n\nTry out the [Jasmine leaderboard example](https://github.com/meteor-velocity/velocity-examples/tree/master/leaderboard-jasmine) to get a first impression on how you test your application with Jasmine.\n\n### Learn Jasmine\n\nUse the [official Jasmine documentation](http://jasmine.github.io/2.1/introduction.html) to learn how to use Jasmine. You should use it as reference until you have mastered all the features that you need.\n\nIf you are new to testing, you can consider to do the [Udacity JavaScript Testing course](https://www.udacity.com/course/javascript-testing--ud549) that uses Jasmine.\n\nTo learn more about testing with Meteor specifically you should buy the [Meteor Testing Manual](http://www.meteortesting.com/?utm_source=jasmine&utm_medium=banner&utm_campaign=jasmine). It's the book, written by [Xolv.io](http://google.com) (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.\n\n### Contribute\n\nVelocity 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](http://xolv.io/) to improve testing with Meteor.\n\n### Troubleshooting\n\nEach 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.\n\nYou can also start you app with `VELOCITY_DEBUG=1 meteor` to get debug information by all the Velocity packages.\n\nIf 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.","excerpt":"Jasmine is a behavior-driven development framework for testing JavaScript code.\nIt has a clean, obvious syntax so that you can easily write tests.","slug":"getting-started-with-jasmine","type":"basic","title":"Getting started with Jasmine"}

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 ```bash meteor add sanjo:jasmine ``` You also need to install a [Velocity Reporter package](https://github.com/meteor-velocity/velocity#reporters) to see the test results. ```bash meteor add velocity:html-reporter ``` ### Try out the example Try out the [Jasmine leaderboard example](https://github.com/meteor-velocity/velocity-examples/tree/master/leaderboard-jasmine) to get a first impression on how you test your application with Jasmine. ### Learn Jasmine Use the [official Jasmine documentation](http://jasmine.github.io/2.1/introduction.html) 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](https://www.udacity.com/course/javascript-testing--ud549) that uses Jasmine. To learn more about testing with Meteor specifically you should buy the [Meteor Testing Manual](http://www.meteortesting.com/?utm_source=jasmine&utm_medium=banner&utm_campaign=jasmine). It's the book, written by [Xolv.io](http://google.com) (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](http://xolv.io/) 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.