Skip to content

Commit

Permalink
test: exclude test logic from coverage reports (#1927)
Browse files Browse the repository at this point in the history
That way, we actually get useful information.
  • Loading branch information
Stebalien authored Jan 25, 2024
1 parent adceefe commit 8d814b3
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ criterion = "0.5.1"
quickcheck = "1.0.0"
quickcheck_macros = "1.0.0"
minstant = "0.1.3"
coverage-helper = "0.2.0"

# workspace
fvm = { path = "fvm", version = "~4.1.1", default-features = false }
Expand Down
1 change: 1 addition & 0 deletions fvm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ static_assertions = "1.1.0"
[dev-dependencies]
pretty_assertions = "1.3.0"
fvm = { path = ".", features = ["testing"], default-features = false }
coverage-helper = { workspace = true }

[features]
default = ["opencl"]
Expand Down
1 change: 1 addition & 0 deletions fvm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//!
//! This package emits logs using the log façade. Configure the logging backend
//! of your choice during the initialization of the consuming application.
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

pub use kernel::default::DefaultKernel;
pub use kernel::Kernel;
Expand Down
1 change: 1 addition & 0 deletions shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ rand = { workspace = true }
serde_json = { workspace = true }
multihash = { workspace = true, features = ["multihash-impl", "sha2", "sha3", "ripemd"] }
quickcheck_macros = { workspace = true }
coverage-helper = { workspace = true }
fvm_shared = { path = ".", features = ["arb"] }
rand_chacha = { workspace = true }
rusty-fork = { version = "0.3.0", default-features = false }
Expand Down
2 changes: 2 additions & 0 deletions shared/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Copyright 2019-2022 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0, MIT

#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

#[macro_use]
extern crate lazy_static;

Expand Down

0 comments on commit 8d814b3

Please sign in to comment.