Skip to content

It should be possible to test and debug #[cfg_attr(X, ignore)] marked runnables in isolation #15352

Open
@Robbepop

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.

I mean those IDE links/buttons:
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-idegeneral IDE featuresC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions