Files
Phraseanet/resources/gulp/test.js
Florian BLOUET 60639d0e96 fix tests
2015-12-02 17:35:43 +01:00

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']);