Open JonCook opened 11 years ago
+1 I'd like to see this as well
I'd want to see a more concrete use case. Are you talking about overall coverage or per test? i.e. every new test requires at least 80% coverage. If it's overall coverage, with big projects, it might take long before one reaches that number, which makes it difficult to enforce this rule from the get go.
I'd suggest looking into incorporating Sonar as part of your CI setup, as it specializes in code quality metrics and has a maven build breaker plugin that can be set to fail your builds based on specific rules.
This way saga can specialize in reporting coverage and sonar or other tools can collect code coverage and decide what to do with it.
It would be nice to put into the mvn configuration a value representing overall coverage which causes mvn to fail your build if it is not satisfied, that way it would plug straight into tools like jenkins and you wouldn't need to worry about looking at heavy weight tools like sonar for this simple use case.
For example could I configure my build to fail if coverage isn't 80% or configurable number?
Thanks