Trying to test a simple feature which is contained in a very complex feature.
The simple feature requires multiple steps before it can be launched. These steps have many consequences on the database, but they don't have any interaction with the feature itself.
Since we'd like to test this simple feature only through our API, one of the idea was to create a route dedicated to testing this. We'd then do a cron visiting that route once in a while, testing whether or not the feature still works.
I find it kinda disturbing to have one or many route(s) existing only for the sole purpose of testing. But I can see the advantages which are numerous.
Is that good practice or is there a better way to do it ?