UNPKG

1.6 kBMarkdownView Raw
1[![Build Status](https://travis-ci.org/jasmine/jasmine-npm.png?branch=master)](https://travis-ci.org/jasmine/jasmine-npm)
2
3# The Jasmine Module
4
5The `jasmine` module is a package of helper code for developing Jasmine projects for Node.js.
6
7The core of jasmine lives at https://github.com/jasmine/jasmine and is `jasmine-core` in npm.
8
9## Contents
10
11This module allows you to run Jasmine specs for your Node.js code. The output will be displayed in your terminal by default.
12
13## Documentation
14
15http://jasmine.github.io/2.4/node.html
16
17## Installation
18```sh
19# Local installation:
20npm install --save-dev jasmine
21
22# Global installation
23npm install -g jasmine
24```
25
26## Initializing
27
28To initialize a project for Jasmine
29
30`jasmine init`
31
32To seed your project with some examples
33
34`jasmine examples`
35
36## Usage
37
38To run your test suite
39
40`jasmine`
41
42## Configuration
43
44Customize `spec/support/jasmine.json` to enumerate the source and spec files you would like the Jasmine runner to include.
45You may use dir glob strings.
46More information on the format of `jasmine.json` can be found in [the documentation](http://jasmine.github.io/2.4/node.html#section-Configuration)
47
48Alternatively, you may specify the path to your `jasmine.json` by setting an environment variable:
49
50`jasmine JASMINE_CONFIG_PATH=relative/path/to/your/jasmine.json`
51
52## Support
53
54Jasmine Mailing list: [jasmine-js@googlegroups.com](mailto:jasmine-js@googlegroups.com)
55Twitter: [@jasminebdd](http://twitter.com/jasminebdd)
56
57Please file issues here at Github
58
59Copyright (c) 2008-2016 Pivotal Labs. This software is licensed under the MIT License.