Skip to content

Commit

Permalink
added very basic acceptance testing, fixes #2
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantin Läufer <[email protected]>
  • Loading branch information
klaeufer committed Mar 16, 2024
1 parent d318044 commit bbfe903
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
extern crate assert_cmd;
extern crate predicates;
use assert_cmd::Command;
use predicates::prelude::*;

#[test]
fn fakeps_runs_without_args() {
let mut cmd = Command::cargo_bin("fakeps").unwrap();
cmd.assert()
.success()
.stdout(predicate::str::contains("PID"))
.stdout(predicate::str::contains("Fake process"));
}

0 comments on commit bbfe903

Please sign in to comment.