It should be possible to test and debug #[cfg_attr(X, ignore)]
marked runnables in isolation #15352
Open
Description
Follow-up to #15341.
The fix for the linked issue #15341 was to flag unit tests with
#[cfg_attr(miri, ignore)]
To ignore them when miri
is enabled instead of a top-level #[cfg(not(miri))]
.
This allowed rust-analyzer
to properly identify all unit tests again.
However, it is still no longer possible to click and test or debug single unit tests flagged this way. Clicking on the in-code links no longer works as intended. For example trying to run the flagged test is as if cargo test
is run with all tests filtered out.
Temporarily unflagging the respective unit test fixes the issue. However, this obviously is not an acceptable long-term solution.
Activity