Test coverage: fail the build if coverage < x%

For test coverage I’ve so far discovered:

AFAICT from the docs, none of these have provisions for doing “fail the build if coverage < x%”. Am I missing something in these tools? Is there another tool that will do this? Thanks in advance for any help.

BTW I’m new to Elixir and loving it! :smile:

Got it: I found https://github.com/parroty/excoveralls#coverage-options – which allows you to configure minimum coverage, which will “fail the build” (ie return non-zero exit code) if coverage is less than that percentage:

{
  "coverage_options": {
    "minimum_coverage": 85
  }
}
4 Likes