Setting coverage threshold

Hello! I am prototyping Deepsource in our CI pipeline and I was wondering if there were means of changing the value of the expected coverage threshold for PRs?

We are basically just looking at making sure branch coverage is over an hardcoded number without fancy relative checks.

I tried posting my value using the API but it didn’t work… but I was mainly farting around I am not too confortable with GraphQL.

Hey @francoisfaubert
You can tweak the threshold for each metric from the repository’s dashboard.

  1. Click on the Metricstab
  2. Select the metric you want to configure. You’d be shown the current value and the already set threshold.
  3. Update the threshold to a value as per your need. You can set this for the overall metric, or per language.

Ref:

Docs:

  1. Available metrics (ref)
  2. Setting up the quality gates (ref)
1 Like