Closed emarcotte closed 2 years ago
Hrm so it doesn't reproduce with:
❯ cat src/main.rs
fn main() {
println!("Hello, world!");
}
#[cfg(test)]
mod test {
#[test]
fn test_stuff() {
assert!(1 == 1);
}
}
❯ cat Cargo.toml
[package]
name = "cov"
version = "0.1.0"
edition = "2021"
Will try to find what needs to be included for it to start falling appart.
:facepalm: Nevermind me. +nighttly after cargo works fine, but +nightly in the test flags doesn't. Not sure why it sometimes treats it like its a test filter and others it doesnt. Either way works fine after multiple attempts with it right after cargo. Sorry for spam!
Describe the bug
I have a relatively small application that has just a couple of simple unit tests. I noticed that when I was trying to get my CI to start procuding JUnit and coverage XMLs I stopped getting coverage info.
My initial command which worked at some point in the past was:
But it seems now any inclusion of
-- +nightly
reports 0 coverage.Platform:
To Reproduce
run:
observe coverage. run:
Observe no coverage
Expected behavior
Coverage matches when test is in nightly mode or not.