Reply
Member
Posts: 1
Registered: ‎01-23-2021

Any examples of integration tests with good maintainability on Github?

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?