mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 13:33:14 +00:00
24 lines
731 B
JavaScript
24 lines
731 B
JavaScript
var gulp = require('gulp');
|
|
var qunit = require('gulp-qunit');
|
|
var mochaPhantomjs = require('gulp-mocha-phantomjs');
|
|
|
|
var config = require('./config.js');
|
|
|
|
gulp.task('mocha_phantomjs', function () {
|
|
return gulp.src('www/scripts/tests/!*.html')
|
|
.pipe(mochaPhantomjs({
|
|
'reporter': 'dot',
|
|
'setting': [
|
|
'loadImages=false'
|
|
]
|
|
}));
|
|
});
|
|
|
|
gulp.task('test-components', function () {
|
|
return gulp.start('test-prod');
|
|
});
|
|
|
|
// JS fixtures should be present (./bin/developer phraseanet:generate-js-fixtures)
|
|
// Note: fixture are loaded into scripts/tests/fixtures directory using
|
|
// bin/developer phraseanet:regenerate-js-fixtures
|
|
gulp.task('test', ['test-components']); |