MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / get_unit_test_cmd

Method get_unit_test_cmd

parser/src/def/workspace.rs:178–189  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

176 }
177
178 pub fn get_unit_test_cmd(&self) -> Command {
179 let root_dir = &self.root_dir;
180 let package_name = &self.name;
181 let mut cmd = Command::new("cargo");
182 cmd.arg("test")
183 .arg("--manifest-path")
184 .arg(format!("{root_dir}/Cargo.toml"))
185 .arg("--lib")
186 .arg("--package")
187 .arg(package_name);
188 cmd
189 }
190
191 // Finished test [unoptimized + debuginfo] target(s) in 0.01s
192 // Running unittests src/lib.rs (target/debug/deps/quick_sort-c42cff5519f79ed2)

Callers 3

get_unit_test_namesMethod · 0.80
build_unit_testMethod · 0.80
get_unit_test_pathMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected