blob: 899392ce98d0b0f654926b832bfec774d6ed86ea [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({
Steven Burrows202034f2017-08-11 12:08:01 +01009 configFile: path.join(__dirname, '../../../../', '/web/gui/src/main/webapp/tests/karma.conf.js'),
Steven Burrows5cb50e32017-07-12 13:59:16 +010010 }).start();
Steven Burrowsdb3be6f2017-07-11 22:44:31 +010011};
12
13const tasks = () => {
Steven Burrowsdb3be6f2017-07-11 22:44:31 +010014 gulp.task('test', () => test());
15};
16
17export default tasks();