iota_move_test_coverage
Analyze test coverage for Move smart contracts by running tests and generating coverage reports to identify untested code paths.
Instructions
Run Move tests with coverage analysis. Returns test results and coverage summary.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to Move package directory | |
| filter | No | Test name filter pattern |
Implementation Reference
- src/index.ts:203-214 (handler)The tool `iota_move_test_coverage` is registered and implemented in `src/index.ts`. It takes `path` and `filter` arguments, runs `iota move test` with coverage, followed by `iota move coverage summary`, and returns the combined output.
"iota_move_test_coverage", "Run Move tests with coverage analysis. Returns test results and coverage summary.", { path: z.string().optional().describe("Path to Move package directory"), filter: z.string().optional().describe("Test name filter pattern"), }, async ({ path, filter }) => { const filterArg = filter ? ` --filter ${filter}` : ""; const testResult = await run(`iota move test --coverage${filterArg}`, path || undefined); const coverageResult = await run("iota move coverage summary", path || undefined); return text(`## Test Results\n${testResult}\n\n## Coverage Summary\n${coverageResult}`); }