The nargo test
command should have a way to select exactly one test
#2271
Labels
enhancement
New feature or request
Problem
In #2017, the module path was prefixed to test names; however, if you run a test in the root package, such as
test_main
, it would run anytest_main
function in any submodule since their full file path containstest_main
.This could be considered a bug, but it requires a new feature. Cargo has the
--exact
flag which does full equality instead of a string match.Happy Case
Add
--exact
flag and use equality check instead of.contains()
Alternatives Considered
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
Yes
Support Needs
No response
The text was updated successfully, but these errors were encountered: