Skip to main content
Glama

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
NameRequiredDescriptionDefault
pathNoPath to Move package directory
filterNoTest name filter pattern

Implementation Reference

  • 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}`);
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Scottcjn/iota-agent-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server