Skip to content
/ dir-diff Public
forked from assert-rs/dir-diff

Are the contents of two directories different?

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

epage/dir-diff

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dir-diff

Are the contents of two directories different?

Build Status Crates Status

Mostly useful for integration-style tests when you want to check some generated output.

Example

Using dir-diff in an integration test with tempdir:

extern crate dir_diff;
extern crate tempdir;

#[test]
fn smoke_test() {
    let tmp_dir = TempDir::new("foo").expect("create temp dir failed");

    generate_some_stuff(&tmp_dir);

    assert!(!dir_diff::is_different(&tmp_dir.path(), "path/to/fixture").unwrap());
}

About

Are the contents of two directories different?

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%