<commit_before>/*jshint node:true */
'use strict';
var qunit = require('qunit'),
absPath = (function () {
  var joinPaths = require('path').join;
  return function (relPath) {
    return joinPaths(__dirname, relPath);
  };
}());

qunit.options.deps = [{
  path: absPath('../node_modules/underscore/underscore.js'),
  namespace: '_'
}, {
  path: absPath('../node_modules/backbone/backbone.js'),
  namespace: 'Backbone'
}];

qunit.run({
  code: {
    path: absPath('../backbone-proxy.js'),
    namespace: 'BackboneProxy'
  },
  tests: [
    absPath('test-model-overridables.js'),
    absPath('test-examples.js'),
    absPath('test-set().js'),
    absPath('test-on().js'),
    absPath('test-once().js'),
    absPath('test-off()-by-event.js'),
    absPath('test-off()-by-callback.js'),
    absPath('test-off()-by-context.js'),
    absPath('test-query-changed-attrs.js'),
    absPath('test-housekeeping.js')
  ]
}, function (error, stats) {
  if (error) {
    console.error(new Error(error));
    return process.exit(1);
  }
  process.exit(stats.failed > 0 ? 1 : 0);
});<commit_msg>Change testrunner logging options<commit_after>/*jshint node:true */
'use strict';
var qunit = require('qunit'),
absPath = (function () {
  var joinPaths = require('path').join;
  return function (relPath) {
    return joinPaths(__dirname, relPath);
  };
}());

qunit.options.deps = [{
  path: absPath('../node_modules/underscore/underscore.js'),
  namespace: '_'
}, {
  path: absPath('../node_modules/backbone/backbone.js'),
  namespace: 'Backbone'
}];

qunit.options.log = {
  // log assertions overview
  assertions: false,

  // log expected and actual values for failed tests
  errors: true,

  // log tests overview
  tests: false,

  // log summary
  summary: true,

  // log global summary (all files)
  globalSummary: true,

  // log coverage
  coverage: true,

  // log global coverage (all files)
  globalCoverage: true,

  // log currently testing code file
  testing: true
};

qunit.run({
  code: {
    path: absPath('../backbone-proxy.js'),
    namespace: 'BackboneProxy'
  },
  tests: [
    absPath('test-model-overridables.js'),
    absPath('test-examples.js'),
    absPath('test-set().js'),
    absPath('test-on().js'),
    absPath('test-once().js'),
    absPath('test-off()-by-event.js'),
    absPath('test-off()-by-callback.js'),
    absPath('test-off()-by-context.js'),
    absPath('test-query-changed-attrs.js'),
    absPath('test-housekeeping.js')
  ]
}, function (error, stats) {
  if (error) {
    console.error(new Error(error));
    return process.exit(1);
  }
  process.exit(stats.failed > 0 ? 1 : 0);
});
{'fraction_non_alphanumeric': 0.19126101954771943, 'fraction_numerical': 0.0030663089306247606, 'mean_word_length': 3.5077720207253886, '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': '7443184', 'n_tokens_mistral': 922, 'n_tokens_neox': 901, 'n_words': 165}