Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
gulp-jasmine-phantom
Advanced tools
A gulp plugin that runs Jasmine tests with either PhantomJS or minijasminenode2.
Before you install gulp-jasmine-phantom
please enusre that you have PhantomJS
installed on your machine. The plugin assumes that the phantomjs
binary is
available in the PATH and executable from the command line.
**If you do not have phantomjs
installed please install following these directions.
$ npm install --save-dev gulp-jasmine-phantom
By default gulp-jasmine-phantom
runs your tests with minijasminenode
and not phantomjs
.
This is in an effort to keep your tasks running as quickly as possible!
Basic useage:
var gulp = require('gulp');
var jasmine = require('gulp-jasmine-phantom');
gulp.task('default', function () {
return gulp.src('spec/test.js')
.pipe(jasmine());
});
To use phantomjs
for tests (ie: integration tests) use the following setup:
var gulp = require('gulp');
var jasmine = require('gulp-jasmine-phantom');
gulp.task('default', function() {
return gulp.src('spec/test.js')
.pipe(jasmine({
integration: true
}));
});
Also, remember you can always run any multitude of tests using different Gulp tasks. For example, running unit tests and integration tests asynchronously.
var gulp = require('gulp');
var jasmine = require('gulp-jasmine-phantom');
gulp.task('unitTests', function () {
return gulp.src('spec/test.js')
.pipe(jasmine());
});
gulp.task('integrationTests', function() {
return gulp.src('spec/test.js')
.pipe(jasmine({
integration: true
}));
});
Type: boolean
Default: false
Run your tests with phantomjs
Type: boolean | string
Default: false
Keep the specRunner.html
file after build. If given a string, it will keep the runner at the string path.
FAQs
Jasmine 2.0 suite runner, optionally with PhantomJS
The npm package gulp-jasmine-phantom receives a total of 29 weekly downloads. As such, gulp-jasmine-phantom popularity was classified as not popular.
We found that gulp-jasmine-phantom demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.