Skip to content

Commit

Permalink
added all and basic test
Browse files Browse the repository at this point in the history
  • Loading branch information
Coder-Harshit committed Jun 13, 2024
1 parent 0679736 commit f7997ff
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/test.rs
Original file line number Diff line number Diff line change
@@ -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());
}
}

0 comments on commit f7997ff

Please sign in to comment.