Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.js « jsapi « test « mocha-3.1.2 « lib « tests - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 42133578e0c17a6da258fc116fe251e9975bc5d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
'use strict';

var Mocha = require('../../');

var mocha = new Mocha({
  ui: 'bdd',
  globals: ['okGlobalA', 'okGlobalB', 'okGlobalC', 'callback*'],
  // ignoreLeaks: true,
  growl: true
});

// mocha.reporter('spec');
require('should');

mocha.addFile('test/suite.spec.js');
mocha.addFile('test/runner.spec.js');
mocha.addFile('test/runnable.spec.js');
mocha.addFile('test/hook-sync.spec.js');
mocha.addFile('test/hook-sync-nested.spec.js');
mocha.addFile('test/hook-async.spec.js');
mocha.addFile('test/acceptance/duration.spec.js');
mocha.addFile('test/acceptance/fs.spec.js');
mocha.addFile('test/acceptance/globals.spec.js');
mocha.addFile('test/acceptance/timeout.spec.js');

mocha.run(function () {
  console.log('done');
}).on('pass', function (test) {
  // console.log('... %s', test.title);
});