Skip to content

Commit

Permalink
Add test for --error-exitcode option
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Feb 12, 2024
1 parent abeb483 commit 3daa512
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/suite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,3 +259,17 @@ fn ignore_marker() {
)
.assert_matches(vec!["a.py:1"]);
}

#[test]
#[should_panic]
fn error_exitcode() {
TestCase::new()
.add_file("a.py", "")
.add_arg("--error-exitcode=1")
.run_with_rule(
"
- title: test
files: '*.py'
",
);
}

0 comments on commit 3daa512

Please sign in to comment.