<commit_before>var spawn = require('child_process').spawn,
  util = require('util'),
  vows;

process.env.NOCK = 'on';

// spawns the following vows command line in a cross platform manner
// NOCK=on vows test/*/*/*-test.js --spec --isolate"


// "echo y  | ssh-keygen -f test/fixtures/testkey -q -t rsa -N '' 2>&1 > /dev/null && is no longer
// needed in the test command line. testkey are checked into tests/fixtures/testkey and testkey.pub


var args = ['./node_modules/.bin/vows', '-i', '--spec','--color','./test/*/*/*-test.js'];

vows = spawn(process.execPath, args);

vows.stdout.on('data', function (data) {
  util.print(data);
});

vows.stderr.on('data', function (data) {
  util.error(data);
});

vows.on('exit', function (code) {
  console.log('vows exited with code ' + code);
});<commit_msg>fixed test driver for win32. needed better path to vows.cmd in node_modules/.bin<commit_after>// spawns the following vows command line in a cross platform manner
// NOCK=on vows test/*/*/*-test.js --spec --isolate"


// "echo y  | ssh-keygen -f test/fixtures/testkey -q -t rsa -N '' 2>&1 > /dev/null && is no longer
// needed in the test command line. testkey are checked into tests/fixtures/testkey and testkey.pub

var path = require('path'),
  spawn = require('child_process').spawn,
  args = ['-i', '--spec','--color', './test/*/*/*-test.js'],
  options = {cwd : process.cwd()},
  vowsPath = (process.platform === 'win32') ? path.resolve('./node_modules/.bin/vows.cmd') : 'vows',
  util = require('util'),
  vows;

// turn on NOCK
process.env.NOCK = 'on';

// run vows testing
vows = spawn(vowsPath, args, options);

// test results
vows.stdout.on('data', function (data) {
  util.print(data);
});

// test errors
vows.stderr.on('data', function (data) {
  util.error(data);
});

vows.on('exit', function (code) {
  console.log('vows exited with code ' + code);
});
{'fraction_non_alphanumeric': 0.19477054429028814, 'fraction_numerical': 0.004268943436499467, 'mean_word_length': 3.528985507246377, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4840492', 'n_tokens_mistral': 668, 'n_tokens_neox': 659, 'n_words': 182}