First install the Solana dev tools and add them to path. Install Rust and Cargo
cargo test-bpf # to run integration test
cargo build-bpf
solana program deploy target/deploy/solana_options.so
cd src/client/nodejs
npm install .
npm run build
npm test # to run unit tests
The src/client/nodejs/src/e2etests/tests.js
file has a series of test against the blockchain.
To run this test first start your validator locally in a seperate window (solana-test-validator
) then call the setup.sh
to create accounts for alice and bob and tokens that will be used in the tests.
Warning: these tests take several minutes to complete
solana-test-validator & # start validator node running on localhost
sh src/client/nodejs/src/e2e_live_tests/setup.sh
cd src/client/nodejs
npm run livetest