I want to write automated e2e / functional / acceptance tests for a statistic service which calculates the numbers only once a day.
For the tests I need to make sure that I know which numbers the test should expect.
I have one option in mind: Create an endpoint which calculates the data before running the expectations. Downside: This would introduce extra logic into the app only for the tests.
Do you have more / better options? Or am I on the wrong path, should I only care about numbers - but not exact numbers in the e2e tests - and cover the real numbers on a different test level?
Thanks a lot for your ideas / thoughts.