blob: ce549c1e27ccfcb61540d1cfae0ecf68de47d791 (
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
|
'use strict';
const suite = require('../../../mapbox-gl-js/test/integration').render;
const suiteImplementation = require('./suite_implementation');
const ignores = require('./ignores.json');
let tests;
let shuffle = false;
let recycleMap = false;
function checkParameter(param) {
const index = tests.indexOf(param);
if (index === -1)
return false;
tests.splice(index, 1);
return true;
}
if (process.argv[1] === __filename && process.argv.length > 2) {
tests = process.argv.slice(2).filter((value, index, self) => { return self.indexOf(value) === index; });
shuffle = checkParameter('--shuffle');
recycleMap = checkParameter('--recycle-map');
}
suite.run('native', {tests, ignores, shuffle, recycleMap}, suiteImplementation);
|