Sha256: f5f538169ed7669fa3be9c1e8a674687c63f4cb6ad8f1c8ce55b152c3ed6a7ce

Contents?: true

Size: 597 Bytes

Versions: 3

Compression:

Stored size: 597 Bytes

Contents

#!/usr/bin/env node

var args = process.argv.slice(2);

var path = require('path');
var fs = require('fs');
var glob = require('glob');

var testsDirectoryPath = path.join(__dirname, '../build/html/');
var testFilePaths = glob.sync(testsDirectoryPath + '/test-*.html');

// var htmlFilePath = path.join(__dirname,'../build/html/test-basic.html');


for (var i = 0; i < testFilePaths.length; i++) {
  var testFilePath = testFilePaths[i];
  var spawnArgs = [testFilePath].concat(args);
  var spawn = require('child_process').spawnSync;
  spawn('mocha-phantomjs', spawnArgs, { stdio: 'inherit' });
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cyclist-0.4.0 vendor/raster/test/scripts/run_tests.js
cyclist-0.3.0 vendor/raster/test/scripts/run_tests.js
cyclist-0.2.0 vendor/raster/test/scripts/run_tests.js