Does rustdoc produce binary executables?

I am trying to run kcov in a Rust project. This works well for regular tests, but I could not figure out how to get it to find doc tests.

Does it create rustdocany binaries that I can transfer in kcovto start coverage?

+4
source share
1 answer

Rustdoc compiles the binaries in a temporary directory and runs them immediately:

https://github.com/rust-lang/rust/blob/acdd3b9f5a/src/librustdoc/test.rs#L248-L292

, TempDir , . , , kcov.

+2

Source: https://habr.com/ru/post/1629854/


All Articles