Open
Description
Sublime Text Version
Sublime Text 3 (Build 3176)
Rust Enhanced Version
2.12.0
Operating system
OS Name Microsoft Windows 7
Version 6.1 Build 7600
Expected behavior
Module tests should be run either via cargo test -- TEST_NAME
or via cargo test -- --exact MOD_NAME::TEST_NAME
.
Actual behavior
$cargo test -- --exact TEST_NAME
which is, obviously, won't be run because --exact
requires full name of a test.
Steps to reproduce
- A new library project with
lib.rs
andmod_name.rs
which contains a#[test] fn mod_test()
test.
$ cargo test -- --list
lib_test: test
mod_name::mod_test: test
$cargo test -- --exact mod_test
running 0 tests
$cargo test -- mod_test
running 1 tests