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