blob: e6e74367bda0fa91f260f6111e0afa25d526bae3 [file] [log] [blame]
Steven Burrowsdb3be6f2017-07-11 22:44:31 +01001import gulp from 'gulp';
Steven Burrowsdb3be6f2017-07-11 22:44:31 +01002import path from 'path';
3import { Server } from 'karma';
4
5const tests = ['../../web/gui/src/main/webapp/tests/**/*.js'];
6
7const test = () => {
8 new Server({
9 configFile: path.join(__dirname, '../../../../../', '/web/gui/src/main/webapp/tests/karma.conf.js'),
10 singleRun: true
Steven Burrows5cb50e32017-07-12 13:59:16 +010011 }).start();
Steven Burrowsdb3be6f2017-07-11 22:44:31 +010012};
13
14const tasks = () => {
Steven Burrowsdb3be6f2017-07-11 22:44:31 +010015 gulp.task('test', () => test());
16};
17
18export default tasks();