Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

atom/jasmine-focused

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atom and all repositories under Atom will be archived on December 15, 2022. Learn more in our official announcement

Jasmine Focused Node Module

OS X Build Status Windows Build Status Dependency Status

Adds global functions to run only certain Jasmine specs.

The number of f characters in the method name denotes the priority of the describe or it spec.

For example, a fit spec would be run instead of any it specs and a ffit spec would be run instead of any fit or it specs.

This module includes a jasmine-focused executable that wraps jasmine-node allowing you to use the focus functions without adding any additional requires to your spec files.

It passes through all command line flags to jasmine-node.

Installing

npm install jasmine-focused

Building

  • Clone the repository
  • Run npm install
  • Run grunt to compile the CoffeeScript

Using

The following function are provides that wrap the standard it and describe Jasmine functions.

  • fit
  • ffit
  • fffit
  • fdescribe
  • ffdescribe
  • fffdescribe

You can remove all focused specs by running the bundled nof script. This script takes a list of directories and defaults to un-focusing all specs in the spec directory.