1 | #!/usr/bin/env node
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | "use strict";
|
8 |
|
9 | var testing = require('apeman-dev-commons-testing'),
|
10 | uiTesting = require('apeman-dev-commons-ui-testing'),
|
11 | async = require('async'),
|
12 | path = require('path');
|
13 |
|
14 | var basedir = path.resolve(__dirname, '..');
|
15 |
|
16 | process.chdir(basedir);
|
17 |
|
18 | async.series([
|
19 | function (callback) {
|
20 | uiTesting.runKarma('start', 'assets/test/karma.conf.js', callback)
|
21 | },
|
22 | function (callback) {
|
23 | testing.runNodeunit([
|
24 | '*_test.js',
|
25 | 'test/*_test.js',
|
26 | 'test/**/*_test.js'
|
27 | ], {
|
28 | reporter: 'default'
|
29 | }, callback);
|
30 | }
|
31 | ], function () {
|
32 |
|
33 | });
|