Install Anchor here.
Install deps
yarn
To run a test against a localnet run
anchor test
To run tests again devnet,
anchor test --provider.cluster devnet --skip-deploy
To run tests against mainnet,
anchor test --provider.cluster mainnet --skip-deploy