jasmine
    Overview
    Documentation
    Tutorials
    Insights
    Code
    Dependencies
    Contributors
    Jobs

jasmine

Command line jasmine

3.4.0  •  Updated 1 years ago  •  by jasmine  •  MIT License

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: jasmine-js@googlegroups.com Twitter: @jasminebdd

Please file issues here at Github

Copyright © 2008-2017 Pivotal Labs. This software is licensed under the MIT License.

License

FOSSA Status

Popularity

Weekly Downloads
1.2M
Stars
333

Maintenance

Development

Last ver 1 year ago
Created 6 years ago
Last commit 5 months ago
8 days between commits

Technology

Node version: 10.13.0
29.4K unpacked

Compliance

MIT License
OSI Approved
0 vulnerabilities

Contributors

50 contributors
slackersoft
Maintainer, 104 commits, 33 merges
Works at Pivotal Labs
Christopher Amavisca and Sheel Choksi
54 commits
Christopher Amavisca
Maintainer, 38 commits, 9 merges, 1 PRs
Steve Gravrock
Maintainer, 14 commits, 2 PRs
Works at Pivotal Labs
Sebastián Gurin
4 commits, 1 PRs
Works at home
Mauricio Borges Silva
3 commits, 1 PRs

Tags

test
jasmine
tdd
bdd
Openbase helps developers choose among and use millions of open-source packages, so they can build amazing products faster.
FacebookTwitterLinkedIn
© 2020 Devstore, Inc.