We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a57a842 commit b0dfb17Copy full SHA for b0dfb17
.github/workflows/rust.yml
@@ -8,6 +8,11 @@ on:
8
- "**"
9
pull_request:
10
11
+env:
12
+ RUST_BACKTRACE: 1
13
+ CARGO_TERM_COLOR: always
14
+ CLICOLOR: 1
15
+
16
jobs:
17
pre_job:
18
runs-on: ubuntu-22.04
crates/squawk/src/snapshots/example.svg
crates/squawk/tests/example_output.rs
@@ -0,0 +1,15 @@
1
+use snapbox::{cmd::Command, file};
2
3
+#[test]
4
+fn example_sql_svg() {
5
+ let expected = file!["../src/snapshots/example.svg": TermSvg];
6
+ let bin_path = snapbox::cmd::cargo_bin("squawk");
7
+ Command::new(bin_path)
+ .env("CLICOLOR_FORCE", "1")
+ .env("SQUAWK_DISABLE_GITHUB_ANNOTATIONS", "1")
+ .arg("../../example.sql")
+ .assert()
+ .code(1) // squawk returns 1 when it finds violations
+ .stderr_eq("")
+ .stdout_eq(expected.raw());
+}
0 commit comments