mirror of
https://github.com/flynx/test.js.git
synced 2025-10-28 18:30:08 +00:00
added item count to -l...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c06c332e23
commit
95efdde4ee
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-test",
|
"name": "ig-test",
|
||||||
"version": "1.3.6",
|
"version": "1.3.7",
|
||||||
"description": "experimental test runner....",
|
"description": "experimental test runner....",
|
||||||
"main": "test.js",
|
"main": "test.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|||||||
17
test.js
17
test.js
@ -501,9 +501,9 @@ argv.Parser({
|
|||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
// XXX might be a good idea to reformat this to indicate origin
|
|
||||||
// modules...
|
|
||||||
// list tests...
|
// list tests...
|
||||||
|
//
|
||||||
|
// NOTE: this uses .helpColumnOffset to align origins...
|
||||||
default_files: undefined,
|
default_files: undefined,
|
||||||
|
|
||||||
'-l': '-list',
|
'-l': '-list',
|
||||||
@ -538,6 +538,11 @@ argv.Parser({
|
|||||||
s.join('')
|
s.join('')
|
||||||
: s })
|
: s })
|
||||||
.flat() }
|
.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(
|
console.log(
|
||||||
object.text`
|
object.text`
|
||||||
Tests run by %s can be of the following forms:
|
Tests run by %s can be of the following forms:
|
||||||
@ -546,23 +551,23 @@ argv.Parser({
|
|||||||
<setup>:<test>
|
<setup>:<test>
|
||||||
<setup>:<modifier>:<test>
|
<setup>:<modifier>:<test>
|
||||||
|
|
||||||
Setups:
|
Setups (${ len(this.setups) || '0' }):
|
||||||
${ keys(this.setups).join('\n\
|
${ keys(this.setups).join('\n\
|
||||||
') }
|
') }
|
||||||
|
|
||||||
Modifiers:
|
Modifiers (${ (len(this.modifiers) - 1) || '0' }):
|
||||||
${ keys(this.modifiers)
|
${ keys(this.modifiers)
|
||||||
.filter(function(e){ return e != '-' })
|
.filter(function(e){ return e != '-' })
|
||||||
.join('\n\
|
.join('\n\
|
||||||
') }
|
') }
|
||||||
|
|
||||||
Tests:
|
Tests (${ (len(this.tests) - 1) || '0' }):
|
||||||
${ keys(this.tests)
|
${ keys(this.tests)
|
||||||
.filter(function(e){ return e != '-' })
|
.filter(function(e){ return e != '-' })
|
||||||
.join('\n\
|
.join('\n\
|
||||||
') }
|
') }
|
||||||
|
|
||||||
Standalone test cases:
|
Standalone test cases (${ len(this.cases) || '0' }):
|
||||||
${ keys(this.cases).join('\n\
|
${ keys(this.cases).join('\n\
|
||||||
') }
|
') }
|
||||||
`, this.scriptName)
|
`, this.scriptName)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user