You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I run :TestFile anywhere inside main_test.rs, it runs cargo test 'tests::main_test::, with the following result:
Finished test [unoptimized + debuginfo] target(s) in 0.00s
Running unittests src/main.rs (target/debug/deps/vim_test_repro-21ec13702a047125)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 1 filtered out; finished in 0.00s
For comparison, this is the output of cargo test:
$ cargo test
Finished test [unoptimized + debuginfo] target(s) in 0.00s
Running unittests src/main.rs (target/debug/deps/vim_test_repro-21ec13702a047125)
running 1 test
test main_test::two_plus_one ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
:TestFile prepends an unnecessary tests::, so cargo test doesn't find the test.
I think #535 is the same problem, but it doesn't mention :TestFile specifically. #708 is about :TestNearest in the same situation.
I'm trying to fix it, but I thought I'd document the exact problem!
The text was updated successfully, but these errors were encountered:
Given the following cargo project (also available at https://git.sr.ht/~keving/vim-test-repro/tree):
If I run
:TestFile
anywhere insidemain_test.rs
, it runscargo test 'tests::main_test::
, with the following result:For comparison, this is the output of
cargo test
::TestFile
prepends an unnecessarytests::
, socargo test
doesn't find the test.I think #535 is the same problem, but it doesn't mention
:TestFile
specifically.#708 is about
:TestNearest
in the same situation.I'm trying to fix it, but I thought I'd document the exact problem!
The text was updated successfully, but these errors were encountered: