Giter Club home page Giter Club logo

jasmine-npm's Introduction

Build Status FOSSA Status

The Jasmine Module

The jasmine module is a package of helper code for developing Jasmine projects for Node.js.

The core of jasmine lives at https://github.com/jasmine/jasmine and is jasmine-core in npm.

Contents

This module allows you to run Jasmine specs for your Node.js code. The output will be displayed in your terminal by default.

Documentation

https://jasmine.github.io/edge/node.html

Installation

# Local installation:
npm install --save-dev jasmine

# Global installation
npm install -g jasmine

Initializing

To initialize a project for Jasmine

jasmine init

To initialize a project for Jasmine when being installed locally

node_modules/.bin/jasmine init

or

npx jasmine init

To seed your project with some examples

jasmine examples

Usage

To run your test suite

jasmine

Configuration

Customize spec/support/jasmine.json to enumerate the source and spec files you would like the Jasmine runner to include. You may use dir glob strings. More information on the format of jasmine.json can be found in the documentation

Alternatively, you may specify the path to your jasmine.json by setting an environment variable or an option:

jasmine JASMINE_CONFIG_PATH=relative/path/to/your/jasmine.json
jasmine --config=relative/path/to/your/jasmine.json

Filtering specs

Execute only those specs which filename match given glob:

jasmine "spec/**/critical/*Spec.js"

Or a single file:

jasmine spec/currentSpec.js

Or execute only those specs which name matches a particular regex:

jasmine --filter "adapter21*"

(where the name of a spec is the first parameter passed to describe())

Support

Documentation: jasmine.github.io Jasmine Mailing list: [email protected] Twitter: @jasminebdd

Please file issues here at Github

Copyright (c) 2008-2017 Pivotal Labs. This software is licensed under the MIT License.

License

FOSSA Status

jasmine-npm's People

Contributors

aaalsaleh avatar amavisca avatar amilajack avatar battk avatar bcaudan avatar briandipalma avatar cancerberosgx avatar claudiosdc avatar cnishina avatar coyoteecd avatar danielsiwiec avatar dflynn15 avatar donmccurdy avatar elliot-nelson avatar flore77 avatar gkalpak avatar hankduan avatar liuxh0 avatar ljwall avatar lonelyelk avatar marcioj avatar mauricioborges avatar mgax avatar mikaturunen avatar olemchls avatar sgravrock avatar susisu avatar tomv564 avatar wendorf avatar ybian avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.