08ea5fbe98
添加用户管理视图、API和状态管理文件
22 lines
690 B
TypeScript
22 lines
690 B
TypeScript
/**
|
|
* 全局测试清理
|
|
* 在所有测试结束后执行
|
|
*/
|
|
|
|
import { FullConfig } from '@playwright/test';
|
|
|
|
async function globalTeardown(config: FullConfig) {
|
|
console.log('\n========== E2E测试结束 ==========');
|
|
|
|
// 打印报告位置
|
|
console.log('\n测试报告位置:');
|
|
console.log(' - HTML报告: test-results/html-report/index.html');
|
|
console.log(' - JSON报告: test-results/e2e-results.json');
|
|
console.log(' - JUnit报告: test-results/junit-report.xml');
|
|
console.log('\n查看HTML报告命令:');
|
|
console.log(' npx playwright show-report test-results/html-report');
|
|
console.log('================================\n');
|
|
}
|
|
|
|
export default globalTeardown;
|