कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

sui-auto-test

easonc13 द्वारा

Coding Agents & IDEs
978clawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Analyze Sui Move test coverage, identify untested code, write missing tests, and perform security audits.

विवरण

यह स्किल क्या करती है

Analyzes test coverage for Sui Move smart contracts, identifies uncovered functions, branches, and assertion failure paths, then writes the missing tests. Also performs security analysis during the testing process, checking for access control issues, integer overflow, and economic exploits.

Combines coverage gap detection with security analysis in a single workflow, so test-writing and vulnerability review happen together rather than as separate passes.

इसे कब इस्तेमाल करें

  • Identifying untested functions in a Sui Move module
  • Writing expected_failure tests for assert! paths
  • Generating coverage reports before a contract audit
  • Catching integer overflow vulnerabilities while improving coverage
  • Verifying 100% branch coverage before mainnet deployment

उदाहरण वर्कफ़्लो

इनपुट

User asks: Improve test coverage for my_module in my Sui Move package

एजेंट
  1. 1

    Run sui move test --coverage --trace in the package directory

  2. 2

    Run analyze_source.py -m my_module -o coverage.md to generate the coverage report

  3. 3

    Read coverage.md to list uncovered functions, uncovered branches, and untested assert! failure paths

  4. 4

    Write Move tests for each gap, including #[expected_failure] tests for abort paths and paired tests for if/else branches

  5. 5

    Re-run coverage analysis to confirm all gaps are closed and document any security findings

आउटपुट

New test functions added to the module's test file, coverage at 100%, and a security report noting any vulnerabilities found during the process

आवश्यकताएँ

  • Sui CLI installed and available in PATH

इंस्टॉलेशन

clawhub install easonc13/sui-auto-test

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक