Jasmine
This package is no longer maintained!
See Migrate to Mocha for how to use the Jasmine expect and spyOn APIs with Mocha.
This package is the Meteor integration for the Jasmine 2.4 testing framework. Makes it easy to test your Meteor app and packages with unit and integration tests. For end-to-end tests with Jasmine check out Chimp.
Installation
App testing
meteor add sanjo:jasmine
You also need to install a reporter package to see the test results. Currently the following packages are available:
- velocity:html-reporter >= 0.10.0
- velocity:console-reporter >= 0.2.1
For example:
meteor add velocity:html-reporter
You can find an example app in the repository.
Package testing
Instructions for package testing.
Getting Started
- Read and bookmark the official Jasmine documentation to learn about Jasmine.
- Read the Meteor Guide testing section to learn how to test Meteor apps.
If you are new to testing, you can consider to do the Udacity JavaScript Testing course that uses Jasmine.
You can find additional articles on Readme.io. Some content might be outdated.
Get Support
Free Support
You can get free help here:
- If it is a technical problem with the sanjo:jasmine package: Create a GitHub issue (best effort support)
- For testing questions specific to Meteor: Meteor forums
- For more general testing questions: Stack Overflow
Premium Support
If need a faster response or have some urgent feature requests, we offer a paid premium support service.
Copyright
The code is licensed under the MIT License (see LICENSE file).
The boot.js scripts are based on code that is part of Jasmine 2.0 (LICENSE).