If you are using foundry (forge, cast, anvil), testing smart contract have been made super easy using the foundry tools.