For internal Motoko method testing/unit testing I would recommend Mops • Motoko Package Manager
For canister end to end testing it would recommend PocketIC
If you are using Javascript client then use 🧪 Announcing PicJS: TypeScript/JavaScript support for PocketIC!
other clients have different libraries