update: log format

This commit is contained in:
Wataru Otsubo 2024-07-21 19:53:51 +09:00
parent eff62d7f09
commit 62a5393cf5
6 changed files with 126 additions and 116 deletions

View file

@ -10,14 +10,23 @@ mod integrated_test {
let test_out_dir = assert_fs::TempDir::new()?;
let test_out = PathBuf::new().join(&test_out_dir).join("out.csv");
// 1st file
let mut cmd = Command::cargo_bin("psb-qaqc-parse")?;
cmd.current_dir("tests")
.arg("./example_logs/valid/20240620_083537.log")
.arg("./example_logs/valid/20240720_171418.log")
.arg(test_out.as_path())
.assert()
.success()
.stdout(predicate::str::contains("Creating new file"));
// 2nd file
let mut cmd = Command::cargo_bin("psb-qaqc-parse")?;
cmd.current_dir("tests")
.arg("./example_logs/valid/20240720_171418.log")
.arg(test_out.as_path())
.assert()
.success();
Ok(())
}
@ -28,7 +37,7 @@ mod integrated_test {
let mut cmd = Command::cargo_bin("psb-qaqc-parse")?;
cmd.current_dir("tests")
.arg("./example_logs/valid/20240620_093537.log")
.arg("./example_logs/valid/20240720_171419.log")
.arg(test_out.as_path())
.assert()
.success()