mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
17 lines
375 B
Rust
17 lines
375 B
Rust
//! Tests for the `cargo locate-project` command.
|
|
|
|
use cargo_test_support::project;
|
|
|
|
#[cargo_test]
|
|
fn simple() {
|
|
let p = project().build();
|
|
let root_manifest_path = p.root().join("Cargo.toml");
|
|
|
|
p.cargo("locate-project")
|
|
.with_stdout(format!(
|
|
r#"{{"root":"{}"}}"#,
|
|
root_manifest_path.to_str().unwrap()
|
|
))
|
|
.run();
|
|
}
|