Parameterized tests in Swift: Reducing boilerplate code
Are you using Swift Testing already? If not, you might start doing so after trying out parameterized tests. They're quite a game changer for my tests and a great way to reuse a single test case.
Read the article