Skip to content

Commit

Permalink
add tests for some CLI switches
Browse files Browse the repository at this point in the history
  • Loading branch information
Eli Flanagan committed Sep 14, 2019
1 parent dd62951 commit 94d3bb2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/executable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,16 @@ fn check_file(tempdir: &TempDir, rest: &str) {

/* Keep tests alphabetized */

#[test]
fn bad_chatter_1() {
if env::var("RUNNING_COVERAGE").is_ok() {
return;
}

let output = run_tectonic(&PathBuf::from("."), &["-", "--chatter=reticent"]);
error_or_panic(output);
}

#[test]
fn bad_input_path_1() {
if env::var("RUNNING_COVERAGE").is_ok() {
Expand All @@ -163,6 +173,16 @@ fn bad_input_path_2() {
error_or_panic(output);
}

#[test]
fn bad_outfmt_1() {
if env::var("RUNNING_COVERAGE").is_ok() {
return;
}

let output = run_tectonic(&PathBuf::from("."), &["-", "--outfmt=dd"]);
error_or_panic(output);
}

#[test]
fn help_flag() {
if env::var("RUNNING_COVERAGE").is_ok() {
Expand Down

0 comments on commit 94d3bb2

Please sign in to comment.