You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Append generated test macro so next test macros are aware of it
`#[gtest]` will benefit from la10736/rstest#291, we could also benefit
other test macros.
It is an attempt to improve capabilities among test macros to avoid
duplicated test runs which is rare to be aware of.
The rationale is simple: procedure of attribute macro see only
attributes following it. Macros next to processing macro will not see
generated macro if it is generated in-place. So, instead of generating
test macro in-place, appending generated test macro will let macros next
to processing macro have chance to react, for example, not generate test
macro if there is already one.
We could deprecate `#[googletest::test]` oneday after rust-lang/rust#82419
released.
See: tokio-rs/tokio#6497, d-e-s-o/test-log#46, frondeus/test-case#143,
la10736/rstest#291, kezhuw/stuck#53.
Refs: rust-lang/rust#67839, rust-lang/rust#82419.
0 commit comments