Skip to content

Commit bbd410f

Browse files
committed
Make output # correspond with human readable test number vs indx
1 parent 0529238 commit bbd410f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ cli.main(function(args, options) {
9999
PhpjsUtil.test(params, function(err, test, params) {
100100
if (!err) {
101101
self.pass_cnt++;
102-
cli.debug('--> ' + params['name'] + '#' + test['number'] + ' passed. ');
102+
cli.debug('--> ' + params['name'] + '#' + (+test['number'] + 1) + ' passed. ');
103103
} else {
104104
self.fail_cnt++;
105-
cli.error('--> ' + params['name'] + '#' + test['number'] + ' failed. ');
105+
cli.error('--> ' + params['name'] + '#' + (+test['number'] + 1) + ' failed. ');
106106
cli.error(err);
107107
if (options.abort) {
108108
cli.fatal('Aborting on first failure as instructed. ');

0 commit comments

Comments
 (0)