Dive into Parameterized Tests: A Smarter ApproachWhen it comes to writing unit tests, we typically create a brand-new test method for each specific use case. Let me illustrate this with an example. Example Imagine a profile database, that can create a new profile for you. final class ProfileDatabas...Sep 11, 2023 · 3 min readkittako.hashnode.dev
Builder Pattern for creating Test DataWhen writing automated tests, we use test data to test certain use cases. Common way One common way is creating test data via a constant. let restaurantWithOnlyName = Restaurant( name: "Delicioso food", cuisines: nil, rating: nil ) A...2AJAug 23, 2023 · 4 min readkittako.hashnode.dev