Skip to content

HerodotusDev/hdp-test

Repository files navigation

HDP Test

This repository contains all the fixture support from HDP.

Fixtures

This guide provides detailed instructions for running integration tests using the Makefile in the HDP project. These examples demonstrate how to process requests and integrate them with the Cairo Program. Before starting, ensure you have the RPC_URL and CHAIN_ID set in your .env file, as the scripts utilize configuration from environment variables.

Generate New Fixture

Simply run: wip: currently there are some issues for a supported query that match with randomized values, be might require comment out/in to handle the cases

cargo run

Setup and Test Execution

Follow these steps to set up and run integration tests:

  1. Setup Cairo Environment: Sets up the virtual environment required for testing, including Cairo VM.

    cargo make cairo-setup

    If you don't have cairo1-run binary installed, try running this script also:

    cargo make caior1-setup
  2. Run Integration Test: You need to position compiled_cairo program from HDP-Cairo and position in build/compiled_cairo path.

    Verify that you are in the correct environment to run cairo-run. This step executes all provided fixtures input files against the compiled Cairo program.

    cargo make integration-test

Fast Setup and Test Execution

If want to run full flow in one command, try:

 cargo make run-full-flow

And if want to reset all the setup and compiled files to back the initial state, try:

cargo make reset-setup

About

hdp integration test with fixtures

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published