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({ |
| 9 | configFile: path.join(__dirname, '../../../../../', '/web/gui/src/main/webapp/tests/karma.conf.js'), |
| 10 | singleRun: true |
Steven Burrows | 5cb50e3 | 2017-07-12 13:59:16 +0100 | [diff] [blame] | 11 | }).start(); |
Steven Burrows | db3be6f | 2017-07-11 22:44:31 +0100 | [diff] [blame] | 12 | }; |
| 13 | |
| 14 | const tasks = () => { |
Steven Burrows | db3be6f | 2017-07-11 22:44:31 +0100 | [diff] [blame] | 15 | gulp.task('test', () => test()); |
| 16 | }; |
| 17 | |
| 18 | export default tasks(); |