Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
suo committed May 10, 2022
1 parent 1aa2b99 commit b701a8b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,13 @@ fn rage_command_basic() -> Result<()> {
cmd.arg("-vv");
cmd.arg("README.md");
cmd.assert().failure();
let output = cmd.output()?;

println!(
"STDOUT:\n{}\n\nSTDERR:\n{}",
std::str::from_utf8(&output.stdout)?,
std::str::from_utf8(&output.stderr)?,
);

// Now run rage
let mut cmd = Command::cargo_bin("lintrunner")?;
Expand All @@ -666,5 +673,12 @@ fn rage_command_basic() -> Result<()> {
cmd.arg("--invocation=0");
cmd.arg("-vv");
cmd.assert().success();
let output = cmd.output()?;

println!(
"STDOUT:\n{}\n\nSTDERR:\n{}",
std::str::from_utf8(&output.stdout)?,
std::str::from_utf8(&output.stderr)?,
);
Ok(())
}

0 comments on commit b701a8b

Please sign in to comment.