50 changes: 0 additions & 50 deletions tests/cli.rs

This file was deleted.

5 changes: 5 additions & 0 deletions tests/cli_tests.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#[test]
#[cfg(feature = "dict")]
fn cli_tests() {
trycmd::TestCases::new().case("tests/cmd/*.toml");
}
2 changes: 2 additions & 0 deletions tests/cmd/assumed-dir-failure.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin.name = "typos"
status.code = 2
3 changes: 3 additions & 0 deletions tests/cmd/file-failure.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bin.name = "typos"
args = "README.md"
status.code = 2
3 changes: 3 additions & 0 deletions tests/cmd/relative-dir-failure.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bin.name = "typos"
args = "."
status.code = 2
1 change: 1 addition & 0 deletions tests/cmd/stdin-correct.stdin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Apropriate world
1 change: 1 addition & 0 deletions tests/cmd/stdin-correct.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Appropriate world
2 changes: 2 additions & 0 deletions tests/cmd/stdin-correct.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin.name = "typos"
args = "--write-changes -"
1 change: 1 addition & 0 deletions tests/cmd/stdin-failure.stdin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Apropriate world
3 changes: 3 additions & 0 deletions tests/cmd/stdin-failure.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bin.name = "typos"
args = "-"
status.code = 2
1 change: 1 addition & 0 deletions tests/cmd/stdin-success.stdin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello world
2 changes: 2 additions & 0 deletions tests/cmd/stdin-success.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin.name = "typos"
args = "-"