diff --git a/package.json b/package.json index d8af54c..8ed2ae3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-test", - "version": "1.3.7", + "version": "1.3.8", "description": "experimental test runner....", "main": "test.js", "bin": { diff --git a/test.js b/test.js index aa71c51..0a05028 100644 --- a/test.js +++ b/test.js @@ -540,9 +540,10 @@ argv.Parser({ .flat() } // XXX should this account for pass-through elements... var len = function(s){ - return ''+ (object.parentOf(Merged, s) ? + return (object.parentOf(Merged, s) ? s.size : Object.keys(s).length) } + var a, b, c, d console.log( object.text` Tests run by %s can be of the following forms: @@ -551,25 +552,27 @@ argv.Parser({ : :: - Setups (${ len(this.setups) }): + Setups (${ (a = len(this.setups)) +'' }): ${ keys(this.setups).join('\n\ ') } - Modifiers (${ len(this.modifiers) - 1 + '' }): + Modifiers (${ ((b = len(this.modifiers)) - 1) +'' }): ${ keys(this.modifiers) .filter(function(e){ return e != '-' }) .join('\n\ ') } - Tests (${ len(this.tests) - 1 + ''}): + Tests (${ (c = len(this.tests) - 1) +''}): ${ keys(this.tests) .filter(function(e){ return e != '-' }) .join('\n\ ') } - Standalone test cases (${ len(this.cases) }): + Standalone test cases (${ (d = len(this.cases)) +'' }): ${ keys(this.cases).join('\n\ ') } + + Total number of tests: ${ ((a * b * (c || 1)) + d) +'' } `, this.scriptName) process.exit() }},