Registry / testing / tronscan-test

tronscan-test

JSON →
library1.4.2jsnpmunverified

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-test
INSTALL
IMPORT
SIG · TRONSCAN-TEST
T
tronscan-test
testingjavascriptv1.4.2
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default export (CLI)
npx tronscan-test test
npm run tronscan-test
CLI is invoked via npx; not a library import. For programmatic use, see GitHub.
MCP Server
npx tronscan-test-mcp
npx tronscan-test mcp
The MCP server binary is `tronscan-test-mcp`. Using `npx tronscan-test mcp` may also work via CLI but is not the canonical MCP entry.
Playwright fixtures (if used)
import { test, expect } from '@playwright/test'
import { test, expect } from 'tronscan-test'
tronscan-test does not export Playwright fixtures; use @playwright/test directly.

Initializes a test project, installs Playwright and TypeScript, downloads Chromium, and runs all 47 test cases.

npx tronscan-test init my-tests && cd my-tests && npm install -D @playwright/test typescript @types/node && npx playwright install chromium && npx tronscan-test test
tronscan-test --version
Debug
Known issues
gotcha@playwright/test version must be >=1.56.0 for compatibility with tronscan-test.
fix
Run: npm install -D @playwright/test@latest
affects: <1.56.0
gotchaThe 'mcp' command must be run from the project root; otherwise MCP server may not find test configuration.
fix
Always run `npx tronscan-test-mcp` from the directory where `tronscan-test init` was executed.
affects: >=1.0
deprecatedUsing `npx tronscan-test mcp` instead of `npx tronscan-test-mcp` is deprecated as of v1.4.0.
fix
Use `npx tronscan-test-mcp` for MCP server.
affects: >=1.4.0
gotchaHeaded mode (--headed) may fail in CI environments without a display server.
fix
Use Xvfb or run headlessly in CI.
affects: >=1.0
gotchaTest initialization creates a directory; avoid running over existing projects.
fix
Run init in an empty directory or use a new folder name.
affects: >=1.0
Errors
Common errors & fixes
Could not resolve '@playwright/test'
@playwright/test is not installed or version is too old.
fix
Install with: npm install -D @playwright/test@latest
Error: Cannot find module 'tronscan-test-mcp'
tronscan-test is not installed globally or locally.
fix
Run: npx tronscan-test init or install globally with: npm install -g tronscan-test
Error: Failed to launch browser: Executable doesn't exist at ...
Playwright browsers not installed.
fix
Run: npx playwright install chromium
Error: @playwright/test version 1.4x is not supported. Required >=1.56.0
Incompatible Playwright version.
fix
Update Playwright: npm install -D @playwright/test@latest
Upgrade
Version history
1.4.2latest on npm
Audit
Dependencies
@playwright/testrequiredE2E testing framework; peer dependency with version constraint >=1.56.0
Agent activity
8 hits · last 30 days
node
6
Resources
tronscan-test — npm install tronscan-test · libregistry