New answers tagged

2

While in test code a higher amount of repetition is accepted than in production code, there are limits. When you are constantly repeating the same setup and/or cleanup code, then a refactoring to make the code more DRY is in order. The possibilities to DRY up your test code depend to some extent on the features offered by your testing framework. Many test ...


2

Is trackUserPerformance within the data access layer? If no, then you should consider adding the layer. A common—although not the only one—approach is to separate applications into presentation layer, which handles all the UI logic, business layer, which contains the actual logic of the application, and the data access layer which provides persistence. If ...


Top 50 recent answers are included