Add a few simple integration tests
This commit is contained in:
11
tests/helpers.rs
Normal file
11
tests/helpers.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
use tempdir::TempDir;
|
||||
|
||||
pub fn init_tmpdir() -> TempDir {
|
||||
let tmp_dir = TempDir::new("grm-test").unwrap();
|
||||
println!("Temporary directory: {}", tmp_dir.path().display());
|
||||
tmp_dir
|
||||
}
|
||||
|
||||
pub fn cleanup_tmpdir(tempdir: TempDir) {
|
||||
tempdir.close().unwrap();
|
||||
}
|
||||
Reference in New Issue
Block a user