Skip to content

Commit

Permalink
closes qunitjs#42 update documentation, you can turn off the logs usi…
Browse files Browse the repository at this point in the history
…ng options.log = false;
  • Loading branch information
kof committed Apr 19, 2012
1 parent d44f718 commit 14d66c0
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 20 deletions.
1 change: 1 addition & 0 deletions lib/testrunner.js
Expand Up @@ -128,6 +128,7 @@ exports.run = function(files, callback) {
files.forEach(function(file) {
var opts = _.extend({}, options, file);

!opts.log && (opts.log = {});
opts.deps = absPaths(opts.deps);
opts.code = absPath(opts.code);
opts.tests = absPaths(opts.tests);
Expand Down
36 changes: 24 additions & 12 deletions readme.md
Expand Up @@ -104,24 +104,36 @@ variable name to be used for the namespace object, followed by a colon:
Defaults:

{
// logging options
log: {

// log assertions overview
assertions: true,
// log assertions overview
assertions: true,

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

// log tests overview
tests: true,
// log tests overview
tests: true,

// log summary
summary: true,
// log summary
summary: true,

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

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

// run test coverage tool
coverage: false,

// define dependencies, which are required then before code
deps: null,

// define namespace your code will be attached to on global['your namespace']
namespace: null
}


Expand Down
11 changes: 3 additions & 8 deletions test/testrunner.js
Expand Up @@ -8,14 +8,9 @@ var tr = require('../lib/testrunner'),
var fixtures = __dirname + '/fixtures',
chain = chainer();

_.extend(tr.options.log, {
assertions: false,
tests: false,
summary: false,
globalSummary: false,
errors: false,
assertions: false
});
tr.options.log = {
testing: true
};

// reset log stats every time .next is called
chain.next = function() {
Expand Down

0 comments on commit 14d66c0

Please sign in to comment.