#![allow(missing_docs)]
use assert_cmd::Command;
use predicates::prelude::*;
fn ruchy_cmd() -> Command {
assert_cmd::cargo::cargo_bin_cmd!("ruchy")
}
#[test]
fn test_test_missing_path() {
ruchy_cmd()
.arg("test")
.arg("tests/fixtures/nonexistent.ruchy")
.assert()
.failure();
}
#[test]
fn test_test_watch_option() {
ruchy_cmd()
.arg("test")
.arg("--help")
.assert()
.success()
.stdout(predicate::str::contains("--watch"));
}
#[test]
fn test_test_verbose_option() {
ruchy_cmd()
.arg("test")
.arg("--help")
.assert()
.success()
.stdout(predicate::str::contains("--verbose"));
}
#[test]
fn test_test_filter_option() {
ruchy_cmd()
.arg("test")
.arg("--help")
.assert()
.success()
.stdout(predicate::str::contains("--filter"));
}
#[test]
fn test_test_coverage_option() {
ruchy_cmd()
.arg("test")
.arg("--help")
.assert()
.success()
.stdout(predicate::str::contains("--coverage"));
}
#[test]
fn test_test_parallel_option() {
ruchy_cmd()
.arg("test")
.arg("--help")
.assert()
.success()
.stdout(predicate::str::contains("--parallel"));
}
#[test]
fn test_test_format_option() {
ruchy_cmd()
.arg("test")
.arg("--help")
.assert()
.success()
.stdout(predicate::str::contains("--format"));
}