Skip to content

Tests reported as sucessful due to name collision (rust, rustaceanvim) #573

@hesxenon

Description

@hesxenon

greetings, I'm not sure where to place this issue exactly but it seems that neotest is responsible for integrating the results of test runners into the buffer by displaying checkmarks and crosses? Please tell me if what I'm describing can not happen in your code :)

I'm using lazyvim and honestly I've given up getting an accurate list of plugins, configurations and so on but it seems that I'm using neotest + rustaceanvim + codelldb.

So the issue is that when you have two tests in the same file with the same name but under different modules (as you sometimes do when prototyping stuff) I get a checkmark for both tests, even though one of them fails.

See this rust playground for minimal rust code necessary to reproduce this.

Extracting the modules into their respective files solves the issue, so there's a workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions