我在一个名为school-info
的包中进行了单元测试,还有一个名为repeat_students_should_not_get_full_marks
的测试函数.
我可以在cargo test --package school_info
之前运行模块中的所有测试.
cargo test test-name
将匹配并运行包含test_name
的测试,尽管这没有帮助.
如何只运行test repeat_students_should_not_get_full_marks
而不运行所有测试?我在文档中找不到执行此操作的命令.