Skip to content

cargo miri test no longer correctly detects tests #479

Closed
@apoelstra

Description

@apoelstra

Since rust-lang/rust#53410 the #[test] attribute has become a macro and is not visible in the HIR as an attribute. This means that the code detecting test cases never triggers so any #[test]-labeled functions are ignored.

CI passes because the effect of this is that the tests simply aren't run, so of course they don't fail :).

I am investigating the effects of the compiler PR. Empirically it looks like functions that used to have a test attribute in the HIR now have a main attribute, but I'm not sure if that's happening on purpose and if that's the correct way for us to detect test cases now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions