chore(testrunner): show 5 slowest tests on CI (#3919)

Show top slowest tests on CI.

Drive-by: some facelifting for the test reporter.
This commit is contained in:
Andrey Lushnikov
2019-02-05 15:28:35 -08:00
committed by GitHub
parent 00bcecbf72
commit a210dd7ee2
3 changed files with 52 additions and 14 deletions

View File

@@ -107,5 +107,8 @@ if (process.env.CI && testRunner.hasFocusedTestsOrSuites()) {
process.exit(1);
}
new Reporter(testRunner, utils.projectRoot());
new Reporter(testRunner, {
projectFolder: utils.projectRoot(),
showSlowTests: process.env.CI ? 5 : 0,
});
testRunner.run();