mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-07 10:04:27 +00:00
30 lines
716 B
JavaScript
30 lines
716 B
JavaScript
var gulp = require('gulp');
|
|
var qunit = require('gulp-qunit');
|
|
var mochaPhantomjs = require('gulp-mocha-phantomjs');
|
|
|
|
var config = require('./config.js');
|
|
|
|
var paths = {
|
|
vendors: 'tmp-assets/',
|
|
dist: 'www/assets/'
|
|
};
|
|
|
|
|
|
gulp.task('mocha_phantomjs', function () {
|
|
return gulp.src('www/scripts/tests/*.html')
|
|
.pipe(mochaPhantomjs({
|
|
'reporter': 'dot',
|
|
'setting': [
|
|
'loadImages=false'
|
|
]
|
|
}));
|
|
});
|
|
|
|
gulp.task('qunit', function () {
|
|
return gulp.src('www/include/js/tests/*.html')
|
|
.pipe(qunit());
|
|
});
|
|
|
|
|
|
// js fixtures should be present (./bin/developer phraseanet:generate-js-fixtures)
|
|
gulp.task('test', ['qunit','mocha_phantomjs']); |