E2E Test Report
发布时间:2026/9/10 9:22:21 锦皓数字建站

E2E Test Report【免费下载链接】ECCThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.项目地址: https://gitcode.com/GitHub_Trending/ev/ECCDate:YYYY-MM-DD HH:MM **Duration:** Xm YsStatus:PASSING / FAILINGSummaryTotal: X | Passed: Y (Z%) | Failed: A | Flaky: B | Skipped: CFailed Teststest-nameFile:tests/e2e/feature.spec.ts:45Error:Expected element to be visibleScreenshot:artifacts/failed.pngRecommended Fix:[description]ArtifactsHTML Report: playwright-report/index.htmlScreenshots: artifacts/*.pngVideos: artifacts/videos/*.webmTraces: artifacts/*.zip### 8.2 金融/关键流程测试 对涉及真实资金的流程如交易执行Skill 建议在非生产环境执行并显式跳过生产 typescript test(trade execution, async ({ page }) { // Skip on production — real money test.skip(process.env.NODE_ENV production, Skip on production) await page.goto(/markets/test-market) await page.locator([data-testidposition-yes]).click() await page.locator([data-testidtrade-amount]).fill(1.0) // 验证预览 const preview page.locator([data-testidtrade-preview]) await expect(preview).toContainText(1.0) // 确认并等待区块链响应 await page.locator([data-testidconfirm-trade]).click() await page.waitForResponse( resp resp.url().includes(/api/trade) resp.status() 200, { timeout: 30000 } ) await expect(page.locator([data-testidtrade-success])).toBeVisible() })8.3 Wallet / Web3 测试通过context.addInitScript注入 mock 的以太坊 Provider在无真实链上交互的情况下验证钱包连接流程test(wallet connection, async ({ page, context }) { // Mock wallet provider await context.addInitScript(() { window.ethereum { isMetaMask: true, request: async ({ method }) { if (method eth_requestAccounts) return [0x1234567890123456789012345678901234567890] if (method eth_chainId) return 0x1 } } }) await page.goto(/) await page.locator([data-testidconnect-wallet]).click() await expect(page.locator([data-testidwallet-address])).toContainText(0x1234) })这与 tdd-guide 的外部依赖必须 mock原则一脉相承——区块链、支付网关等外部系统在 E2E 中应以可控的 mock 形态参与测试。九、规则如何安装与生效ECC 规则是可安装、可分层生效的。根据 rules/README.md方式一安装脚本推荐# 安装 common 一个或多个语言特定规则集 ./install.sh typescript ./install.sh typescript python # 可同时安装多种语言方式二手动安装注意不可用/*拍平目录否则同名文件会互相覆盖破坏../common/相对引用mkdir -p ~/.claude/rules/ecc cp -r rules/common ~/.claude/rules/ecc/ cp -r rules/typescript ~/.claude/rules/ecc/【免费下载链接】ECCThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.项目地址: https://gitcode.com/GitHub_Trending/ev/ECC创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考
锦
锦皓数字建站
深耕本土企业品牌数字化升级,专注原创端正雅致商务官网,从视觉设计到稳定运维全程保驾护航。