---
title: "Discussion on \"Rust: When Cargo Code Coverage Works Locally But Fails in CI\" | Hashnode"
description: "Discussion on \"Rust: When Cargo Code Coverage Works Locally But Fails in CI\". A short post to help if you run into the same issue.\nTLDR: If your code coverage reports show vastly different results between local development and CI, explicitly set --engine llvm in your cargo tarpaulin command.\nI recently ran into a frustration y..."
url: "https://hashnode.com/posts/rust-when-cargo-code-coverage-works-locally-but-fails-in-ci/685cfc2db497f1f632bfb155"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Rust: When Cargo Code Coverage Works Locally But Fails in CI](https://hans.lhoest.eu/rust-when-cargo-code-coverage-works-locally-but-fails-in-ci?utm_source=hashnode&utm_medium=feed)

A short post to help if you run into the same issue. TLDR: If your code coverage reports show vastly different results between local development and CI, explicitly set --engine llvm in your cargo tarpaulin command. I recently ran into a frustration y...

Jun 26, 2025 · 2 min read · hans.lhoest.eu  
Updated Jun 27, 2025  
Read the article

-   [#rust](https://hashnode.com/tag/rust)

## Written by

[Hans L'Hoest](https://hashnode.com/@hanlho)

@hanlho · The Hague, The Netherlands

  
[View profile](https://hashnode.com/@hanlho)

Riding the Architect elevator

I write about: Software architecture and engineering, Better software better. DDD, Scala and Rust

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
