Skip to content

Commit

Permalink
Stdout summary tests time
Browse files Browse the repository at this point in the history
  • Loading branch information
schipiga committed Dec 27, 2017
1 parent ebda01c commit 6999d51
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/reporter/stdout.js
Expand Up @@ -61,6 +61,16 @@ var epilogue = () => {
stdout((indent + execChunks + " " + msg).white);
};

var execTime = CONF.testCases
.map(t => t.duration)
.reduce((a, b) => a + b, 0) / 1000;

if (execTime > 0) {
stdout();
stdout(indent + "Summary tests time is".white,
`${execTime} sec`.white.bold);
};

if (failedTests.length) {
stdout();
stdout("TEST FAILURES:".bold)
Expand Down

0 comments on commit 6999d51

Please sign in to comment.