<commit_before>var testrunner = require('qunit');

testrunner.options.log.summary = false;
testrunner.options.log.tests = false;
testrunner.options.log.assertions = false;

testrunner.run({
    code: "./dist/all.js",
    tests: [
      './site/test/unit/rect.js',
      './site/test/unit/ellipse.js',
      './site/test/unit/color.js',
      './site/test/unit/circle.js',
      './site/test/unit/line.js',
      './site/test/unit/polyline.js',
      './site/test/unit/polygon.js',
      './site/test/unit/path.js',
      './site/test/unit/path_group.js',
      './site/test/unit/observable.js',
      './site/test/unit/object.js',
      './site/test/unit/text.js',
      './site/test/unit/util.js',
      './site/test/unit/image.js',
      './site/test/unit/group.js',
      './site/test/unit/parser.js',
      './site/test/unit/canvas.js',
      './site/test/unit/canvas_static.js'
    ]
}, function(err, report) {
  if (err) {
    console.log(err);
  }
});<commit_msg>running npm test should exit with a failure status if test failures > 0, should fix travisci reporting<commit_after>var testrunner = require('qunit');

testrunner.options.log.summary = true;
testrunner.options.log.tests = false;
testrunner.options.log.assertions = false;

testrunner.run({
    code: "./dist/all.js",
    tests: [
      './site/test/unit/rect.js',
      './site/test/unit/ellipse.js',
      './site/test/unit/color.js',
      './site/test/unit/circle.js',
      './site/test/unit/line.js',
      './site/test/unit/polyline.js',
      './site/test/unit/polygon.js',
      './site/test/unit/path.js',
      './site/test/unit/path_group.js',
      './site/test/unit/observable.js',
      './site/test/unit/object.js',
      './site/test/unit/text.js',
      './site/test/unit/util.js',
      './site/test/unit/image.js',
      './site/test/unit/group.js',
      './site/test/unit/parser.js',
      './site/test/unit/canvas.js',
      './site/test/unit/canvas_static.js'
    ]
}, function(err, report) {
  if(report.failed > 0){
    process.on('exit', function() {
      process.exit(1);
    });
  }
  if (err) {
    console.log(err);
  }
});
{'fraction_non_alphanumeric': 0.21421845574387946, 'fraction_numerical': 0.0014124293785310734, 'mean_word_length': 2.289473684210526, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6353327', 'n_tokens_mistral': 765, 'n_tokens_neox': 797, 'n_words': 93}