-
-
Notifications
You must be signed in to change notification settings - Fork 121
Unable to find the test name for unit tests, in release mode, with test-threads=1 #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I opened this ticket for the record, feel free to close. WorkaroundA workaround is to override the
[...]
[dependencies]
insta = { version = "0.15.0", features = ["backtrace"] }
[profile.bench]
debug = 1 # line tables only test result:
|
Unfortunately there is nothing I can do about this with the tools available currently. It might be worth filing a feature request for rust-test. |
I filed an issue here: rust-lang/rust#70492 |
mitsuhiko
added a commit
that referenced
this issue
Jan 25, 2022
We used to detect the snapshot names form the current thread. This has been very unrealiable in a lot of cases. This changes the behavior so that the function name is used instead by using `std::any::type_name`. This does change behavior slightly but most users should not notice this change except if they relied on helper functions. In that case using a macro is a better solution most likely. Refs #127 and #105
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
insta
is not able to find the test name for unit tests, in release mode, with--test-threads=1
option, even with the "backtrace" feature.main.rs
Cargo.toml
test result:
The text was updated successfully, but these errors were encountered: