summaryrefslogtreecommitdiff
path: root/support/texlab/tests/integration/dev.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/tests/integration/dev.rs')
-rw-r--r--support/texlab/tests/integration/dev.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/support/texlab/tests/integration/dev.rs b/support/texlab/tests/integration/dev.rs
new file mode 100644
index 0000000000..7ba1e93d0c
--- /dev/null
+++ b/support/texlab/tests/integration/dev.rs
@@ -0,0 +1,17 @@
+use std::process::{Command, Stdio};
+
+use anyhow::Result;
+
+#[test]
+fn rustfmt() -> Result<()> {
+ let success = Command::new("cargo")
+ .args(&["fmt", "--check"])
+ .current_dir(env!("CARGO_MANIFEST_DIR"))
+ .stdout(Stdio::null())
+ .stderr(Stdio::null())
+ .status()?
+ .success();
+
+ assert!(success);
+ Ok(())
+}