cargo test-bpf
runs a set of integration tests, including standing
up a local test validator, building and deploying your program, and
running an RPC client against it.
This makes it very easy to iterate quickly.
Check out integration.rs
for how this works.