Skip to content

Latest commit

 

History

History
75 lines (52 loc) · 1.84 KB

File metadata and controls

75 lines (52 loc) · 1.84 KB

Integration Tests

A comprehensive test suite for the ICRC7/ICRC37 implementation, ensuring reliability and correctness of the Core NFT and Storage Canisters.

Overview

The integration tests provide complete coverage of the ICRC7/ICRC37 implementation, testing all aspects of NFT management and storage functionality. These tests are essential for ensuring the reliability and correctness of the implementation.

Prerequisites

  • Rust toolchain
  • PocketIC binary
  • Internet Computer SDK (dfx)

Setting Up PocketIC

  1. Download PocketIC for your platform:

  2. Make the binary executable:

chmod +x pocket-ic
  1. Set the environment variable:
export POCKET_IC_BIN=/path/to/pocket-ic

Running Tests

Build All Components

First, build all components:

bash ./scripts/build_all.sh

Run Integration Tests

Run the complete test suite:

bash ./scripts/run_integrations_tests.sh

Common issues and solutions:

  1. PocketIC Not Found

    • Verify POCKET_IC_BIN is set correctly
    • Check binary permissions
  2. Build Failures

    • Ensure all dependencies are installed
    • Check Rust toolchain version
  3. Test Failures

    • Check test environment setup
    • Verify test data
    • Review error messages

Contributing

We welcome contributions to improve the test suite. Please:

  1. Follow existing test patterns
  2. Add comprehensive documentation
  3. Ensure all tests pass
  4. Submit pull requests with clear descriptions

Resources