Skip to main content
4 events
when toggle format what by license comment
May 3, 2022 at 18:31 vote accept dzieciou
Mar 1, 2016 at 9:32 comment added Dee @dzieciou: if you can mock part of the system, it means that you have the control. With mock you know, what you can expect and conditional test is not necessary. Then it could be an anti-pattern.
Feb 29, 2016 at 17:37 comment added dzieciou +1 but... if the state of environment is out of my control then it may happen it will never be in the state necessary to test second path. I think in such case it's better to mock part of the system instead of running tests infinitely untol it passes.
Feb 29, 2016 at 13:56 history answered Dee CC BY-SA 3.0