How to Optimise Continuous Testing