Need way to run some code before any of unit tests #35762
Labels
A-libtest
Area: `#[test]` / the `test` library
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
The details can be found logging while running cargo test.
The problem is in usage of rust log library,
to get it work you need call "initialization" code that provide implementation of
log::Log
traitto logging macros.
So to get output from your code that tested by "cargo test" you need somehow call "logging_init" function, but as can I see at now there is no way to tell "cargo" run something before any tests.
Previously reported as cargo bug
The text was updated successfully, but these errors were encountered: