Closed as not planned
Closed as not planned
Description
Problem
If I run cargo test xxx
when xxx does not exist. cargo does not give any warning but output a bunch of green output.
For example. I have a test case test_foo
. Every time I change foo I run this test case by running cargo test test_foo
. Then I change the name from test_foo
to test_foo_
and forget to change the test command(For example, by using bash history). So every time I run cargo test I still got a bunch of green output which make me take the test as passed for granted, causing more confusion in the future.
Steps
cargo test xxx
xxx is a non-existing test case
Possible Solution(s)
Give warnings if the test case does not exist.
Notes
No response
Version