There should be some sort of CI running unit tests. This will probably require more modularity in the code.