I just ran a set of tests I have been developing.
All of a sudden I start getting a summary like this:
Summary [ 0.598s] 26/28 tests run: 24 passed, 2 failed, 0 skipped
More specifically I comment out enough tests to get a “straight number” of tests run. This is the report:
Summary [ 0.588s] 27 tests run: 26 passed, 1 failed, 0 skipped
Then I add this test to mod tests
:
#[test]
fn do_test() -> Result<()> {
assert!(false);
Ok(())
}
The report I now get is:
Summary [ 0.607s] 26/28 tests run: 24 passed, 2 failed, 0 skipped
“2 failed”: seems sensible. But more difficult: it’s telling me 2 fewer tests actually passed. Equally puzzling, all of a sudden it’s “unsure” how many tests have been run.
A significant fact could possibly be that I’m using the crate mockall here, including directive #[double]
.
Can anyone explain what’s going on and where in nextest documentation this may be explained?