I don't really want to wait until Monday to validate this fix. Is there a way I can do something at the back-end to simulate it being Monday?
1 Answer
First, figure out where the application gets its sense of time from. Then, figure out how you can either change the time/date there or how you can mock that thing to make the application believe that it's the date/time you want.
-
3This should go without saying but it's especially important for this sort of time-dependent or hard to reproduce bug: whatever is done to "fake" the time should be tested both on the old and new versions of the code. If it doesn't trigger the bug in the code that doesn't have the fix, it isn't a valid test for the code that does have the supposed fix.– c32hedgeCommented Sep 28, 2017 at 16:42