By maintainability, I mean shows good patterns and how to setup the data for each tests. A problem that I often run into is, integration tests often requires existing data to be there. For example, if I want to test AccountService.payAccount(), perhaps I'd need existing users, accounts, anything related to accounts (bank accounts, history, etc). What's a good pattern of setting that up for each integration test?
โ07-17-2020 02:37 AM