TronScan Test v1.4.2 is an AI-driven E2E and API test automation toolkit specifically built for tronscan.org. It leverages Playwright and agentic patterns (Planner/Generator/Healer/DataValidator) to provide 47 pre-built test cases across 6 pages (Homepage, Block, Transaction, Address, Contract, Token List). Unlike generic test frameworks, it offers a unified CLI (init, test, report, setup-agent, mcp, heal), built-in AI agent configuration for Claude, Cursor, Copilot, and Windsurf, and an MCP server for AI tool integration. It supports headed/headless mode, HTML reports with video, trace, and screenshot. Requires @playwright/test >=1.56.0.
npm install tronscan-testVerified import paths — ran on the pinned version, not inferred.
Initializes a test project, installs Playwright and TypeScript, downloads Chromium, and runs all 47 test cases.
Run: npm install -D @playwright/test@latest
Always run `npx tronscan-test-mcp` from the directory where `tronscan-test init` was executed.
Use `npx tronscan-test-mcp` for MCP server.
Use Xvfb or run headlessly in CI.
Run init in an empty directory or use a new folder name.
Install with: npm install -D @playwright/test@latest
Run: npx tronscan-test init or install globally with: npm install -g tronscan-test
Run: npx playwright install chromium
Update Playwright: npm install -D @playwright/test@latest