You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently running the integration tests locally is a bit of a pain as it requires manually copying a number of files around and deploying contracts. We should have shell scripts for this so that the experience can be as simple as opening two shells (one for anvil and another for the javascript tests) and running two commands.
Happy Case
We should define shell scripts which can be run locally to simplify running these tests locally.
forge-init.sh: This should set up the foundry project for the verifier contracts. We should delete any unnecessary files from here as part of this so we're not compiling things we don't need.
forge create --rpc-url http://127.0.0.1:8545 --mnemonic "test test test test test test test test test test test junk" src/1_mul.sol:UltraVerifier --json > mul_output.json
forge create --rpc-url http://127.0.0.1:8545 --mnemonic "test test test test test test test test test test test junk" src/main.sol:UltraVerifier --json > main_output.json
We can also have a overarching script to run all of these in order.
Alternatives Considered
We'll probably want to have a yarn command to rebuild any of the dependencies of the integration tests package.
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered:
Problem
Currently running the integration tests locally is a bit of a pain as it requires manually copying a number of files around and deploying contracts. We should have shell scripts for this so that the experience can be as simple as opening two shells (one for anvil and another for the javascript tests) and running two commands.
Happy Case
We should define shell scripts which can be run locally to simplify running these tests locally.
forge-init.sh
: This should set up the foundry project for the verifier contracts. We should delete any unnecessary files from here as part of this so we're not compiling things we don't need.noir/.github/workflows/test-integration.yml
Lines 219 to 220 in 4765c82
codegen-verifiers.sh
: This should codegen the verifier contracts and pull them into the foundry project.noir/.github/workflows/test-integration.yml
Lines 222 to 233 in 4765c82
deploy-verifiers.sh
: This would start up an anvil instance and deploy the contracts, writing the contract addresses to a json file.noir/.github/workflows/test-integration.yml
Lines 214 to 217 in 4765c82
noir/.github/workflows/test-integration.yml
Lines 235 to 243 in 4765c82
We can also have a overarching script to run all of these in order.
Alternatives Considered
We'll probably want to have a
yarn
command to rebuild any of the dependencies of the integration tests package.Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: