From b075e6d09b09ff371adf045dc5079bb8ef82f1cf Mon Sep 17 00:00:00 2001 From: Unitech Date: Fri, 23 Mar 2018 11:54:44 +0100 Subject: [PATCH] fix: test/display summary --- test/e2e/cli/interpreter.sh | 31 ++++++++++++++++--------------- test/parallel.js | 4 ++-- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/test/e2e/cli/interpreter.sh b/test/e2e/cli/interpreter.sh index 7962a5808..e7379c296 100644 --- a/test/e2e/cli/interpreter.sh +++ b/test/e2e/cli/interpreter.sh @@ -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" diff --git a/test/parallel.js b/test/parallel.js index 7d8a32b84..6290859d5 100644 --- a/test/parallel.js +++ b/test/parallel.js @@ -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());