# gulp-jasmine2-phantomjs

> Run Jasmine tests with PhantomJS

Latest version **1.0.1** (published 2017-12-20) · 0 weekly downloads

## Install

```sh
npm install gulp-jasmine2-phantomjs
pnpm add gulp-jasmine2-phantomjs
yarn add gulp-jasmine2-phantomjs
bun add gulp-jasmine2-phantomjs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-12-20 |
| First published | 2014-03-07 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Sander Mak |
| Maintainers | sandermak |
| Keywords | gulpplugin, test, jasmine, phantomjs |

## Links

- npm: https://www.npmjs.com/package/gulp-jasmine2-phantomjs
- Repository: https://github.com/sandermak/gulp-jasmine2-phantomjs
- Homepage: http://github.com/sandermak/gulp-jasmine2-phantomjs
- Issues: https://github.com/sandermak/gulp-jasmine2-phantomjs/issues
- npm.io page: https://npm.io/package/gulp-jasmine2-phantomjs

## Dependencies (3)

- [through2](https://npm.io/package/through2.md) ~2.0.3
- [gulp-util](https://npm.io/package/gulp-util.md) ~3.0.8
- [phantomjs-prebuilt](https://npm.io/package/phantomjs-prebuilt.md) ~2.1.14

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-12-20
- 1.0.0 — 2016-11-24
- 0.2.1 — 2016-08-25
- 0.2.0 — 2014-11-20
- 0.1.1 — 2014-07-09
- 0.1.0 — 2014-07-09
- 0.0.3 — 2014-03-07
- 0.0.2 — 2014-03-07
- 0.0.1 — 2014-03-07

## README

gulp-jasmine2-phantomjs
=======================

Use this plugin to run HTML spec files with Jasmine 2.0 specs. Currently, you must use this plugin in conjunction with the JUnitXmlReporter in [jasmine2-junit](https://github.com/sandermak/jasmine2-junit). This reporter generates JUnit XML reports to be used in a CI build.

The plugin shows success/failure counts on the console. Specs will be run using PhantomJS 2.

Usage
-----
In order to setup gulp-jasmine2-phantomjs, require the plugin and use ```gulp.src``` to pipe html spec files (see readme of https://github.com/sandermak/jasmine2-junit for a correct setup of html files) into it:

```
var jasminePhantomJs = require('gulp-jasmine2-phantomjs');
var specFiles = '**/*.html';

gulp.task('test', function() {
    return gulp.src(specFiles).pipe(jasminePhantomJs());
});
```

If you want to pass additional arguments to PhantomJS, pass them as parameter to the plugin:

```
gulp.src(specFiles).pipe(jasminePhantomJs(['--web-security=false', '--load-images=false']));
```

Alternatively, if you just want to pass a single argument, you can use

```
gulp.src(specFiles).pipe(jasminePhantomJs('--web-security=false'));
```

An overview of available PhantomJS arguments can found here: http://phantomjs.org/api/command-line.html

---
_Source: https://npm.io/package/gulp-jasmine2-phantomjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
