Skip to content

Commit

Permalink
Add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
mre committed Nov 7, 2024
1 parent 3e11c88 commit 4a29ece
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lychee-bin/tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1653,6 +1653,24 @@ mod cli {
Ok(())
}

#[test]
fn test_dump_inputs_glob_exclude_path() -> Result<()> {
let pattern = fixtures_path().join("**/*");

let mut cmd = main_command();
cmd.arg("--dump-inputs")
.arg(pattern)
.arg("--exclude-path")
.arg(fixtures_path().join("dump_inputs/subfolder"))
.assert()
.success()
.stdout(contains("fixtures/dump_inputs/subfolder/test.html").not())
.stdout(contains("fixtures/dump_inputs/subfolder/file2.md").not())
.stdout(contains("fixtures/dump_inputs/subfolder").not());

Ok(())
}

#[test]
fn test_dump_inputs_url() -> Result<()> {
let mut cmd = main_command();
Expand Down

0 comments on commit 4a29ece

Please sign in to comment.