Skip to content

Modules and "Test here"  #300

Open
Open
@pravic

Description

@pravic

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

  1. A new library project with lib.rs and mod_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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions