Skip to content

[neotest] Hide folder/filenames + don't show folders/modules containing no tests #780

Answered by mrcjkb
DragonDev1906 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey 👋

The underlying issue is that neotest's adapter interface requires the implementation of an is_test_file function.

This doesn't work with rust, because any file could contain test modules. You'd have to read and parse the file (not great for performance) to determine if it contains test modules.
Because I don't want that complexity and potential performance issues in rustaceanvim, I decided not to do that. And that's why the neotest summary output doesn't work great with rustaceanvim's neotest adapter.

I'm fine with that - I've never needed the summary because I never use neotest to run the whole suite (I use Nix for that). So I won't put any energy into fixing this.

If someone wants…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@DragonDev1906
Comment options

@mrcjkb
Comment options

Answer selected by DragonDev1906
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants