diff --git a/package.json b/package.json index 7ce2385..d8af54c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-test", - "version": "1.3.6", + "version": "1.3.7", "description": "experimental test runner....", "main": "test.js", "bin": { diff --git a/test.js b/test.js index 24a3b6b..2da1d12 100644 --- a/test.js +++ b/test.js @@ -501,9 +501,9 @@ argv.Parser({ ], - // XXX might be a good idea to reformat this to indicate origin - // modules... // list tests... + // + // NOTE: this uses .helpColumnOffset to align origins... default_files: undefined, '-l': '-list', @@ -538,6 +538,11 @@ argv.Parser({ s.join('') : s }) .flat() } + // XXX should this account for pass-through elements... + var len = function(s){ + return object.parentOf(Merged, s) ? + s.size + : Object.keys(s).length } console.log( object.text` Tests run by %s can be of the following forms: @@ -546,23 +551,23 @@ argv.Parser({ : :: - Setups: + Setups (${ len(this.setups) || '0' }): ${ keys(this.setups).join('\n\ ') } - Modifiers: + Modifiers (${ (len(this.modifiers) - 1) || '0' }): ${ keys(this.modifiers) .filter(function(e){ return e != '-' }) .join('\n\ ') } - Tests: + Tests (${ (len(this.tests) - 1) || '0' }): ${ keys(this.tests) .filter(function(e){ return e != '-' }) .join('\n\ ') } - Standalone test cases: + Standalone test cases (${ len(this.cases) || '0' }): ${ keys(this.cases).join('\n\ ') } `, this.scriptName)