Permalink
Browse files

closes #42 update documentation, you can turn off the logs using opti…

…ons.log = false;
  • Loading branch information...
1 parent d44f718 commit 14d66c0f6743395291e1b506960ddfbffd5b60c0 @kof kof committed Apr 19, 2012
Showing with 28 additions and 20 deletions.
  1. +1 −0 lib/testrunner.js
  2. +24 −12 readme.md
  3. +3 −8 test/testrunner.js
View
@@ -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);
View
@@ -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
}
View
@@ -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() {

0 comments on commit 14d66c0

Please sign in to comment.