Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit f8c230d

Browse files
committed
Add support for slow-tests
1 parent d98c3c6 commit f8c230d

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/agent/coverage/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ version = "0.1.0"
44
edition = "2021"
55
license = "MIT"
66

7+
[features]
8+
slow-tests = []
9+
710
[dependencies]
811
anyhow = { version = "1.0", features = ["backtrace"] }
912
cobertura = { path = "../cobertura" }

src/agent/coverage/tests/snapshot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the MIT License.
33

44
#[test]
5-
#[cfg(target_os = "windows")]
5+
#[cfg(all(target_os = "windows", feature = "slow-tests"))]
66
fn windows_snapshot_tests() {
77
use coverage::{binary::DebugInfoCache, source::Line, AllowList};
88
use debuggable_module::path::FilePath;

src/ci/agent.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export RUST_BACKTRACE=full
3737

3838
# Run tests and collect coverage
3939
# https://github.com/taiki-e/cargo-llvm-cov
40-
cargo llvm-cov nextest --all-targets --locked --workspace --lcov --output-path "$output_dir/lcov.info"
40+
cargo llvm-cov nextest --all-targets --features slow-tests --locked --workspace --lcov --output-path "$output_dir/lcov.info"
4141

4242
# TODO: re-enable integration tests.
4343
# cargo test --release --manifest-path ./onefuzz-task/Cargo.toml --features integration_test -- --nocapture

0 commit comments

Comments
 (0)