I have a series of tests that need to take place on a server set to a specific date - such that I can test that values displayed are what they are supposed to be for that specific date range.
Furthermore I have a set of tests that test functionality that works around working day hours - requiring that I set the date time manually on the serving machine to test that the features are working properly.
Any ideas on how I can set the date/time in the CI environment? Ive nearly convinced myself its impossible.
I suspect a better solution to this is to refactor the tests so that the information normally obtained from system time is injected as a string. Tests that monkey around with the system time won’t parallelise.