We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e940c commit 46f51c9Copy full SHA for 46f51c9
crates/forge/bin/cmd/coverage.rs
@@ -64,6 +64,10 @@ pub struct CoverageArgs {
64
)]
65
report_file: Option<PathBuf>,
66
67
+ /// Whether to include libraries in the coverage report.
68
+ #[arg(long)]
69
+ include_libs: bool,
70
+
71
#[command(flatten)]
72
filter: FilterArgs,
73
@@ -162,7 +166,8 @@ impl CoverageArgs {
162
166
report.add_source(version.clone(), source_file.id as usize, path.clone());
163
167
164
168
// Filter out dependencies
165
- if project_paths.has_library_ancestor(std::path::Path::new(&path)) {
169
+ if !self.include_libs && project_paths.has_library_ancestor(std::path::Path::new(&path))
170
+ {
171
continue
172
}
173
0 commit comments