mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
fix: test/display summary
This commit is contained in:
parent
08612de5b7
commit
b075e6d09b
@ -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"
|
||||
|
||||
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user