mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
This reverts commit 68c9fce50772e3f75c5d80397b7ab9b1ceb7fd99.
This commit is contained in:
parent
6b1767efbb
commit
b6a9a8a34a
@ -18,12 +18,11 @@ import colors from 'colors/safe';
|
|||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import open from 'open';
|
import open from 'open';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { FullConfig, Suite, TestError } from '../../types/testReporter';
|
import { FullConfig, Suite } from '../../types/testReporter';
|
||||||
import { HttpServer } from 'playwright-core/src/utils/httpServer';
|
import { HttpServer } from 'playwright-core/src/utils/httpServer';
|
||||||
import { calculateSha1, removeFolders } from 'playwright-core/src/utils/utils';
|
import { calculateSha1, removeFolders } from 'playwright-core/src/utils/utils';
|
||||||
import RawReporter, { JsonReport, JsonSuite, JsonTestCase, JsonTestResult, JsonTestStep, JsonAttachment } from './raw';
|
import RawReporter, { JsonReport, JsonSuite, JsonTestCase, JsonTestResult, JsonTestStep, JsonAttachment } from './raw';
|
||||||
import assert from 'assert';
|
import assert from 'assert';
|
||||||
import { formatError } from './base';
|
|
||||||
|
|
||||||
export type Stats = {
|
export type Stats = {
|
||||||
total: number;
|
total: number;
|
||||||
@ -141,10 +140,6 @@ class HtmlReporter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onError(error: TestError) {
|
|
||||||
console.log(formatError(error, colors.enabled));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function htmlReportFolder(outputFolder?: string): string {
|
export function htmlReportFolder(outputFolder?: string): string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user