diff --git a/tests/test.rs b/tests/test.rs new file mode 100644 index 0000000..3436918 --- /dev/null +++ b/tests/test.rs @@ -0,0 +1,23 @@ +#[cfg(test)] +mod tests { + use std::process::Command; + + use super::*; // Import the functions from the parent module + + #[test] + fn test_ospect_runs() { + let result = Command::new("./ospect") + .output() + .expect("Failed to execute command"); + assert!(result.status.success()); + } + + #[test] + fn test_ospect_all_runs() { + let result = Command::new("./ospect") + .arg("all") + .output() + .expect("Failed to execute command"); + assert!(result.status.success()); + } +} \ No newline at end of file