move icon indicating copy to clipboard operation
move copied to clipboard

[Bug] [move-cli] The move-cli package test --filter parameter does not take effect in some scenarios

Open yubing744 opened this issue 2 years ago • 0 comments

🐛 Bug

The move-cli package test --filter parameter does not take effect in some scenarios

To reproduce

Code snippet to reproduce

git clone https://github.com/move-language/move.git
cd move/language/tools/move-cli/tests/move_unit_tests/assign_dev_addr_for_dep
move package test --filter M::nop

or

git clone https://github.com/move-language/move.git
cd move/language/tools/move-cli/tests/move_unit_tests/assign_dev_addr_for_dep
move package test --filter 0x2::M::nop

Expected Behavior

match one test

System information

macOS: 10.14.6 move-cli: 0.1.0

Additional context

move package help test: -f, --filter A filter string to determine which unit tests to run. A unit test will be run only if it contains this string in its fully qualified (::<module_name>::<fn_name>) name

Code: https://github.com/move-language/move/blob/7733658048a8bc80e9ba415b8c99aed9234eaa5f/language/tools/move-unit-test/src/test_runner.rs#L197

yubing744 avatar Jul 08 '22 01:07 yubing744