Skip to content

Commit e0b056c

Browse files
committed
use cargo command to run example
1 parent 422ebc1 commit e0b056c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/bin.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ fn it_prints_out_processing_error() -> Result<()> {
1616
let mut file = NamedTempFile::new()?;
1717
file.write_all(html.as_bytes())?;
1818

19-
let output = Command::new("./target/debug/examples/simple_parser")
19+
let output = Command::new("cargo")
20+
.args(["run", "--example", "simple_parser", "--"])
2021
.arg("-d")
2122
.arg(file.path())
2223
.output()

0 commit comments

Comments
 (0)