Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /usr/share/nodejs/tap-mocha-reporter/lib/reporters/ drwxr-xr-x | |
| Viewing file: Select action/file-type: exports = module.exports = Dump
var Base = require('./base')
, cursor = Base.cursor
, color = Base.color
, useColors = Base.useColors
, util = require('util')
function Dump(runner) {
Base.call(this, runner);
var events = [
'start',
'version',
'suite',
'suite end',
'test',
'pending',
'pass',
'fail',
'test end',
];
var i = process.argv.indexOf('dump')
if (i !== -1) {
var args = process.argv.slice(i + 1)
if (args.length)
events = args
}
runner.on('line', function (c) {
if (c.trim())
process.stderr.write(Base.color('bright yellow', c))
})
events.forEach(function (ev) {
runner.on(ev, function (obj) {
console.log(ev)
if (arguments.length) {
console.log(util.inspect(obj, false, Infinity, useColors))
console.log()
}
})
})
runner.on('end', function () {
console.log('end')
console.log(runner.stats)
console.log()
})
}
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0049 ]-- |