No Code Coverage or Branch Info

Currently using Azure DevOps with two different projects: C# and React (Vite).

Both have coverage reports for the CI builds (on branch check-ins), and the pipelines say that the reports have been published successfully.

However, none of the code coverage metrics, branches, lines, etc. are being reported.

Here are my .deepsource.toml files:

version = 1 test_patterns = [ "test/**" ] [[analyzers]] name = "test-coverage" enabled = true [[analyzers]] name = "csharp" [[transformers]] name = "dotnet-format" 
version = 1 test_patterns = [ "**/*.test.tsx" ] exclude_patterns = [ "public/**", "dist/**", "scripts/**" ] [[analyzers]] name = "test-coverage" enabled = true [[analyzers]] name = "javascript" [analyzers.meta] plugins = ["react"] environment = ["cypress", "vitest"] module_system = "es-modules" dialect = "typescript" skip_doc_coverage = [] [[transformers]] name = "prettier" 

I’ve gotten something to show up by checking code into the main repo.

However, I now have another issue.

The code in my main has a 92% code coverage. I just opened a pull request (in Azure DevOps) to merge into main. The code in the branch has a 95% code coverage. But the optional “Coverage status check failed” in the PR.

Currently, all “Overall Thresholds” and “New Code Thresholds” are set to 0% for composite, condition, branches, and lines.

Why is the coverage status check failing?

Hey @a11smiles,

Checks can fail because of Issues or failing metrics.
You can have a fine grain control on them from the repository’s settings tab.
References:

  • Quality gate on Issues detected
  • On Metrics (Enforcing threshold on a metric would fail the check if it isn’t met)

Since you mentioned your coverage is above the set threshold, can you please check and confirm if the check has any issues flagged for the changes?
You can also see the details on the history tab on your DeepSource Dashboard.

the history isn’t being updated. It stopped being updated 6 hours prior, and it doesn’t have all of the builds listed. As a matter of fact, we have had approx 50-60 builds, yet only about 4 of them are showing up in the history. It also doesn’t show any pending PRs in the history though one is currently sitting in AzDO (the one that failed the quality check). There are no issues reported in my pipelines. All the data is reported in the pipeline as submitted.

The ultimate problem is that I don’t know why it failed the quality check. Without the build reports in the history tab, I’m flying blind.

Can you help us with your org and repo name please?