New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

jasmine-runner-node

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jasmine-runner-node

Run Jasmine 2 specs using PhantomJS

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

jasmine-runner-node

  • Run Jasmine 2 specs with (or without) PhantomJS
  • Compatible with any task runner
  • Uses official jasmine-core node module
  • Doesn't generate temporary spec runner files
  • Doesn't require an external phantom installation
  • Detects added/removed spec/js/css files
  • Perfect for use with gulp.js

Installation

In your project root, run: npm install jasmine-runner-node --save-dev

Usage

var jasmine = require('jasmine-runner-node');

// start server
jasmine.start({
  root: <dir>,          // project root (default: client module root)
  updateInterval: <ms>, // how often to check for file changes (default: 1000)
  port: <num>,          // port number to serve jasmine on (default: 8888)
  files: {              // (in order of spec runner inclusion)
    css: <file glob or glob list>,
    specHelper: <file glob or glob list>,
    js: <file glob or glob list>,
    spec: <file glob or glob list>,
    other: <file glob or glob list>
  }
});

// stop server
jasmine.stop()

// start server, run phantom, stop server
// (also takes all of the above, except updateInterval)
jasmine.run({
  showColors: <bool>,      // colorize phantomjs output (default: true)
  testOutput: <stream>,    // stream for test report output (default: stdout)
  phantomOutput: <stream>, // stream for phantom output (default: stderr)
});

Testing

Run npm test :)

Caveats

The jasmine-core node module must be pulled in as a dependency of jasmine-runner-node and not of any parent module, as it expects jasmine-core to be present in jasmine-runner-node/node_modules. This means that jasmine-core should not be a direct dependency of any node package that depends on jasmine-runner-node.

(more docs coming soon)

Keywords

gulp

FAQs

Package last updated on 18 Apr 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts