UNPKG

1.28 kBMarkdownView Raw
1# Jasmine Focused Node Module [![Build Status](https://travis-ci.org/atom/jasmine-focused.png)](https://travis-ci.org/atom/jasmine-focused)
2
3Adds global functions to run only certain
4[Jasmine](https://github.com/pivotal/jasmine) specs.
5
6The number of `f` characters in the method name denotes the
7priority of the `describe` or `it` spec.
8
9For example, a `fit` spec would be run instead of any `it` specs and a
10`ffit` spec would be run instead of any `fit` or `it` specs.
11
12This module includes a `jasmine-focused` executable that wraps
13[jasmine-node](https://github.com/mhevery/jasmine-node) allowing you to use the
14focus functions without adding any additional requires to your spec files.
15
16It passes through all command line flags to `jasmine-node`.
17
18## Installing
19
20```sh
21npm install jasmine-focused
22```
23
24## Building
25 * Clone the repository
26 * Run `npm install`
27 * Run `grunt` to compile the CoffeeScript
28
29## Using
30
31The following function are provides that wrap the standard `it` and `describe`
32Jasmine functions.
33
34 * `fit`
35 * `ffit`
36 * `fffit`
37 * `fdescribe`
38 * `ffdescribe`
39 * `fffdescribe`
40
41You can remove all focused specs by running the bundled `nof` script. This
42script takes a list of directories and defaults to un-focusing all specs
43in the `spec` directory.