mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user