Skip to content

Commit

Permalink
tests: re-tool integration tests
Browse files Browse the repository at this point in the history
This basically rewrites every integration test. We reduce the amount of
magic involved here in terms of which arguments are being passed to
ripgrep processes. To make up for the boiler plate saved by the magic,
we make the Dir (formerly WorkDir) type a bit nicer to use, along with a
new TestCommand that wraps a std::process::Command. In exchange, we get
tests that are easier to read and write.

We also run every test with the `--pcre2` flag to make sure that works,
when PCRE2 is available.
  • Loading branch information
BurntSushi committed Aug 19, 2018
1 parent 9e79f8c commit ab0c7a9
Show file tree
Hide file tree
Showing 11 changed files with 2,807 additions and 2,412 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ version = "2.29.4"
default-features = false
features = ["suggestions", "color"]

[dev-dependencies]
serde = "1"
serde_derive = "1"

[features]
avx-accel = ["grep/avx-accel"]
simd-accel = ["grep/simd-accel"]
Expand Down
Loading

0 comments on commit ab0c7a9

Please sign in to comment.