1

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?

3
4

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.

1
  • 3
    This 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.
    – c32hedge
    Sep 28 '17 at 16:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.