UNPKG

675 BJavaScriptView Raw
1#!/usr/bin/env node
2
3/**
4 * @file Test this project.
5 */
6
7"use strict";
8
9var testing = require('apeman-dev-commons-testing'),
10 uiTesting = require('apeman-dev-commons-ui-testing'),
11 async = require('async'),
12 path = require('path');
13
14var basedir = path.resolve(__dirname, '..');
15
16process.chdir(basedir);
17
18async.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});