fix: test/display summary

This commit is contained in:
Unitech 2018-03-23 11:54:44 +01:00
parent 08612de5b7
commit b075e6d09b
2 changed files with 18 additions and 17 deletions

View File

@ -77,27 +77,28 @@ should 'process should be online' "status: 'online'" 1
########### Install
$pm2 install typescript
########### typescript fork test
$pm2 delete all
# $pm2 install typescript
>typescript.log
# ########### typescript fork test
# $pm2 delete all
$pm2 start echo.ts -o typescript.log --merge-logs
# >typescript.log
sleep 1.5
# $pm2 start echo.ts -o typescript.log --merge-logs
grep "Hello Typescript!" typescript.log
spec "Should work on Typescript files in fork mode"
# sleep 1.5
########### typescript cluster test
$pm2 delete all
# grep "Hello Typescript!" typescript.log
# spec "Should work on Typescript files in fork mode"
>typescript.log
# ########### typescript cluster test
# $pm2 delete all
$pm2 start echo.ts -i 1 -o typescript.log --merge-logs
# >typescript.log
sleep 1.5
grep "Hello Typescript!" typescript.log
spec "Should work on Typescript files in cluster mode"
# $pm2 start echo.ts -i 1 -o typescript.log --merge-logs
# sleep 1.5
# grep "Hello Typescript!" typescript.log
# spec "Should work on Typescript files in cluster mode"

View File

@ -95,10 +95,10 @@ buildContainer(function(err) {
var table = new Table({
head: ['Test', 'Duration'],
style : {'padding-left' : 1, head : ['cyan', 'bold'], compact : true}
});
})
Object.keys(timings).forEach(function(test) {
table.push(test, timings[test])
table.push([test, timings[test]])
})
console.log(table.toString());