raydium-io / raydium-contract-instructions

114 stars 109 forks source link

Enhancing unit testing #24

Open dandamiangow3t opened 4 months ago

dandamiangow3t commented 4 months ago

Added local_test_validator as running the unit tests and relying on Anchor.toml [test.validator.clone] was not working (an error referring to 'Account is not executable' was thrown). So I've downloaded the accounts and programs manually from devnet and included them in the local_test_validator. Now, you can unit test starting this validator in a separate shell (local_validator/start-test-validator.sh) and then running the tests with anchor test --skip-local-validator..

Changed the Readme.md to reflect that.

Small enhancements to the unit test files.