mrhooray / Gulp Mocha Phantomjs
run client-side Mocha tests with PhantomJS
Stars: ✭ 67
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Gulp Mocha Phantomjs
Karma Webpack Example
Karma + Webpack + Mocha + Chai + Istanbul
Stars: ✭ 88 (+31.34%)
Mutual labels: mocha, phantomjs
generator-speedseed
Oriented to components, allow create/choice template, multiple configuration with easy maintenance
Stars: ✭ 13 (-80.6%)
Mutual labels: gulp, mocha
node-mocha-extjs
Framework for testing ExtJs applications
Stars: ✭ 19 (-71.64%)
Mutual labels: mocha, phantomjs
react-ssr-spa
Server side rendered single page app using reactjs official libraries.
Stars: ✭ 30 (-55.22%)
Mutual labels: gulp, mocha
js-stack-from-scratch
🌺 Russian translation of "JavaScript Stack from Scratch" from the React-Theming developers https://github.com/sm-react/react-theming
Stars: ✭ 394 (+488.06%)
Mutual labels: gulp, mocha
Grunt Mocha
[MOVED] Grunt task for running mocha specs in a headless browser (PhantomJS)
Stars: ✭ 371 (+453.73%)
Mutual labels: mocha, phantomjs
Phplint
Lightning fast concurrent PHP linter for Node.js, Grunt & Gulp! ⚡️
Stars: ✭ 62 (-7.46%)
Mutual labels: gulp
Gulp Require Tasks
Splits Gulpfile into multiple individual files
Stars: ✭ 51 (-23.88%)
Mutual labels: gulp
Gulp Wp Pot
Gulp plugin to generate pot file for WordPress plugins and themes
Stars: ✭ 67 (+0%)
Mutual labels: gulp
Mocha Chrome
☕️ Run Mocha tests using headless Google Chrome
Stars: ✭ 66 (-1.49%)
Mutual labels: mocha
Boj Autocommit
When you solve the problem of Baekjoon Online Judge, it automatically commits and pushes to the remote repository.
Stars: ✭ 60 (-10.45%)
Mutual labels: phantomjs
Phantomjs Maven Plugin
A maven plugin for installing the phantomjs binary on your system automatically.
Stars: ✭ 62 (-7.46%)
Mutual labels: phantomjs
Bombanauts
Bombanauts, inspired by the original Bomberman game, is a 3D multiplayer online battle arena (MOBA) game where players can throw bombs at each other, make boxes explode, and even other players!
Stars: ✭ 54 (-19.4%)
Mutual labels: mocha
Bemgo
Quick start of developing projects using Gulp build system and BEM methodology.
Stars: ✭ 66 (-1.49%)
Mutual labels: gulp
Interactive Image
A jQuery plugin to embed interactive images on your website.
Stars: ✭ 53 (-20.9%)
Mutual labels: mocha
Grunt2gulp.js
Converts Grunt task files, gruntfile.js, to Gulp files.
Stars: ✭ 64 (-4.48%)
Mutual labels: gulp
gulp-mocha-phantomjs
a simple wrapper for mocha-phantomjs-core library
Warning
This project is no longer maintained.
Installation
node
$ npm install gulp-mocha-phantomjs --save-dev
Usage
<!DOCTYPE html>
<html>
<head>
<title>Mocha</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
</head>
<body>
<script src="../node_modules/should/should.js"></script>
<script src="../node_modules/mocha/mocha.js"></script>
<script>mocha.setup('bdd')</script>
<script>
describe('true', function () {
it('should be true', function () {
true.should.equal(true);
});
});
</script>
<script>
mocha.run();
</script>
</body>
</html>
var gulp = require('gulp');
var mochaPhantomJS = require('gulp-mocha-phantomjs');
gulp.task('test', function () {
return gulp
.src('test/runner.html')
.pipe(mochaPhantomJS());
});
Reporter can be chosen via reporter
option:
gulp.task('test', function () {
return gulp
.src('test/runner.html')
.pipe(mochaPhantomJS({reporter: 'spec'}));
});
Output of mocha tests can be piped into a file via dump
option:
gulp.task('test', function () {
return gulp
.src('test/runner.html')
.pipe(mochaPhantomJS({reporter: 'spec', dump:'test.log'}));
});
Test against remote by url:
gulp.task('test', function () {
var stream = mochaPhantomJS();
stream.write({path: 'http://localhost:8000/index.html'});
stream.end();
return stream;
});
Suppress PhantomJS’s console output:
gulp.task('test', function() {
return gulp
.src('test/runner.html')
.pipe(mochaPhantomJS({
suppressStdout: true,
suppressStderr: true
}));
});
Pass options to mocha and/or PhantomJS:
gulp.task('test', function () {
return gulp
.src('test/runner.html')
.pipe(mochaPhantomJS({
reporter: 'tap',
mocha: {
grep: 'pattern'
},
phantomjs: {
viewportSize: {
width: 1024,
height: 768
},
useColors:true
}
}));
});
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].