Skip to content

Commit

Permalink
fix: test/display summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Mar 23, 2018
1 parent 08612de commit b075e6d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
31 changes: 16 additions & 15 deletions test/e2e/cli/interpreter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions test/parallel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit b075e6d

Please sign in to comment.