josecelano / cargo-pretty-test

A Rust command that prettifies the ugly `cargo test` output into a beautiful one.
https://users.rust-lang.org/t/cargo-test-output-with-indentation/100149
135 stars 1 forks source link

Missing test in docs tests #37

Closed josecelano closed 1 year ago

josecelano commented 1 year ago
   Doc-tests torrust-serde-bencode

running 5 tests
test src/ser.rs - ser::to_string (line 390) ... ok
test src/de.rs - de::from_str (line 347) ... ok
test src/de.rs - de::from_bytes (line 386) ... ok
test src/ser.rs - ser::to_bytes (line 353) ... ok
test src/lib.rs - (line 6) ... ok

test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.30s

I get this error:

Error from cargo-pretty-test:
the parsed amount of running tests [19, 53, 5] should equal to the number in stats.total [19, 53, 4]

It's not parsing one of the Doc-tests. I guess it's the last one.

zjp-CN commented 1 year ago

I guess it's the last one.

Yes.

I guess it's because there is no path shown if a doc test appears in the module doc of lib.rs.