Closed crypto-vincent closed 1 year ago
This PR is an improvement of the tests tooling.
Main changes are:
ProgramContext
ProgramTestContext
RpcClient
solana_sdk
solana_program
This enable us to write rust integration tests that can run BOTH on devnet and localnet!
The main goal is that all existing rust integration test code can now be used for devnet!!!
I also use this new tooling to ensure that the devnet is always correctly deployed as a part of the CI process
Thank you kings, merging now
This PR is an improvement of the tests tooling.
Main changes are:
ProgramContext
with traits necessary to run all transactionsProgramContext
forProgramTestContext
(for local-cluster testing)ProgramContext
forRpcClient
(for devnet-cluster testing)solana_sdk
(to cleanup dependency tosolana_program
)This enable us to write rust integration tests that can run BOTH on devnet and localnet!
The main goal is that all existing rust integration test code can now be used for devnet!!!
I also use this new tooling to ensure that the devnet is always correctly deployed as a part of the CI process