Steven Burrows | db3be6f | 2017-07-11 22:44:31 +0100 | [diff] [blame] | 1 | import gulp from 'gulp'; |
Steven Burrows | db3be6f | 2017-07-11 22:44:31 +0100 | [diff] [blame] | 2 | import path from 'path'; |
| 3 | import { Server } from 'karma'; |
| 4 | |
| 5 | const tests = ['../../web/gui/src/main/webapp/tests/**/*.js']; |
| 6 | |
| 7 | const test = () => { |
| 8 | new Server({ |
Steven Burrows | 202034f | 2017-08-11 12:08:01 +0100 | [diff] [blame] | 9 | configFile: path.join(__dirname, '../../../../', '/web/gui/src/main/webapp/tests/karma.conf.js'), |
Steven Burrows | 5cb50e3 | 2017-07-12 13:59:16 +0100 | [diff] [blame] | 10 | }).start(); |
Steven Burrows | db3be6f | 2017-07-11 22:44:31 +0100 | [diff] [blame] | 11 | }; |
| 12 | |
| 13 | const tasks = () => { |
Steven Burrows | db3be6f | 2017-07-11 22:44:31 +0100 | [diff] [blame] | 14 | gulp.task('test', () => test()); |
| 15 | }; |
| 16 | |
| 17 | export default tasks(); |