Thank you for the excellent library.
I'm encountering an issue when running individual crate tests in a large codebase, and it's causing significant initial slowness. For instance, when working with the Bevy engine repository (https://github.com/bevyengine/bevy/), running tests only in the crates/bevy_app crate necessitates building all the examples, resulting in a target directory size of over 150GB and a substantial time investment. I've managed to improve the situation to some extent by adding an args = { "--lib" } flag, but the build process remains quite slow due to the workspace flag.
The root cause appears to be related to issue #27 and commit c8894d8.
Here are some statistics below, each run starting with a clean target folder.
Current neotest-rust flags (--workspace): very very slow
crates/bevy_app$ cargo nextest run --workspace app::
time taken: [very long time]
target folder size: > 100GB
Without workspace, with --lib: very fast
crates/bevy_app$ cargo nextest run --lib app:
Finished test [unoptimized + debuginfo] target(s) in 17.72s
target folder size: 496MB
No arguments
crates/bevy_app$ cargo nextest run
Finished test [unoptimized + debuginfo] target(s) in 17.14s
target folder size: 519MB
With --lib and --workspace: somewhat reasonable, but still slow
crates/bevy_app$ cargo nextest run --lib --workspace app::
Finished test [unoptimized + debuginfo] target(s) in 1m 36s
target folder size: 8.3GB