feat: implement HTML report generation in MobileTestReporter
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
import { MobileTestReporter } from '../../utils/MobileTestReporter';
|
||||
|
||||
test('MobileTestReporter should generate HTML report', async () => {
|
||||
const reporter = new MobileTestReporter({} as any);
|
||||
const html = reporter.generateHtmlReport({
|
||||
suites: [],
|
||||
duration: 10000,
|
||||
status: 'passed',
|
||||
} as any);
|
||||
|
||||
expect(html).toContain('移动端测试报告');
|
||||
expect(html).toContain('总测试数');
|
||||
expect(html).toContain('通过');
|
||||
expect(html).toContain('失败');
|
||||
});
|
||||
Reference in New Issue
Block a user