Skip to content

feat: Initial fork testing#1

Open
Apegurus wants to merge 29 commits into
mainfrom
feat/fork-testing
Open

feat: Initial fork testing#1
Apegurus wants to merge 29 commits into
mainfrom
feat/fork-testing

Conversation

@Apegurus

@Apegurus Apegurus commented Dec 3, 2021

Copy link
Copy Markdown
Contributor

In this PR I add some base line VaultApe and strategy tests against a forked instance of BSC Mainnet.

  • test/utils/config.js includes configurations for the test and an array of all the strategies to test and their configurations.
  • VaultApe.test.js is a test that initialized the VaultApe and iterates over all the test strategies from the config. It tests deposits, withdrawals and compounds of each strategy.
  • test-environment.config.js includes the forking configuration to make the tests work while it also unlocks the account 0x41f2E851431Ae142edE42B6C467515EF5053061d. This account needs to have the vault want tokens to be able to properly run the tests.

Hopefully we can use and grow this into a framework to efficiently test strategies and the VaultApe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants