Skip to content

Commit

Permalink
add schema json related test
Browse files Browse the repository at this point in the history
  • Loading branch information
manojkarthick committed May 13, 2022
1 parent 86d7c91 commit 7e84e50
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,21 @@ mod integration {
Ok(())
}

#[test]
fn validate_schema_json() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("pqrs")?;
cmd.arg("schema").arg("--json").arg(CITIES_PARQUET_PATH);
cmd.assert().success().stdout(
predicate::str::contains("version").and(
predicate::str::contains("num_rows")
.and(predicate::str::contains("created_by"))
.and(predicate::str::contains("message")),
),
);

Ok(())
}

#[test]
fn validate_uncompressed_size() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("pqrs")?;
Expand Down

0 comments on commit 7e84e50

Please sign in to comment.