-
Notifications
You must be signed in to change notification settings - Fork 34
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
Change of thread name to "impl" #28
Comments
I don't believe |
I think insta takes the snapshot name from the function name, rather than the test name. Prior to #30, |
tamird
added a commit
to tamird/test-log
that referenced
this issue
Oct 5, 2023
There's no need to inspect the test case so deeply; all this macro wants to do is insert a prelude - so do that and expand the rest as-is. This removes the inner function `test_impl`, which is the suspected cause of d-e-s-o#28. Closes d-e-s-o#28.
tamird
added a commit
to tamird/test-log
that referenced
this issue
Oct 9, 2023
There's no need to inspect the test case so deeply; all this macro wants to do is insert a prelude - so do that and expand the rest as-is. This removes the inner function `test_impl`, which is the suspected cause of d-e-s-o#28. Closes d-e-s-o#28.
d-e-s-o
added a commit
that referenced
this issue
Oct 13, 2023
This change bumps the version of the crate to 0.2.13. The following notable changes have been made since 0.2.12: - Improved interaction with nested attributes (such as those used by the test_case crate), that may not have been parsable in the past - Removed generated test_impl function, which could have "leaked" into test cases (#28) - Eliminated dependency on tracing crate - Bumped minimum supported Rust version to 1.56 - Bumped syn dependency to 2.0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for test-log! I am using it together with https://insta.rs/docs/ and insta takes the snapshot name from the thread name a thread runs in. This us usually the name of the test function.
test-log changes the name of the thread to impl which breaks this workflow. I currently circumvent it by naming all snapshots manually, but ofc it would be better if that wouldn't be needed.
The text was updated successfully, but these errors were encountered: