Added support for a defined failure threshold, rather than failing if coverage < 100%