Skip to content

Commit

Permalink
Auto merge of #10638 - Muscraft:move-snapshot-tests, r=epage
Browse files Browse the repository at this point in the history
Move snapshot tests into testsuite

This moves all tests from the `snapshot` folder into the `testsuite` folder as described by [this comment](#10631 (comment)). A macro was also added so there is no need to specify the path in a `snapshot` test just the file. This was done for ease of refactoring and ease of porting new tests to `snapshot`

close #10627

r? `@epage`
  • Loading branch information
bors committed May 7, 2022
2 parents 6878c43 + 639f3bd commit 9c61a3d
Show file tree
Hide file tree
Showing 955 changed files with 3,773 additions and 3,110 deletions.
7 changes: 7 additions & 0 deletions crates/cargo-test-support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ macro_rules! t {
};
}

#[macro_export]
macro_rules! curr_dir {
() => {
std::path::Path::new(file!()).parent().unwrap()
};
}

#[track_caller]
pub fn panic_error(what: &str, err: impl Into<anyhow::Error>) -> ! {
let err = err.into();
Expand Down
1 change: 0 additions & 1 deletion tests/snapshots/init/auto_git/in

This file was deleted.

1 change: 0 additions & 1 deletion tests/snapshots/init/explicit_bin_with_git/in

This file was deleted.

1 change: 0 additions & 1 deletion tests/snapshots/init/simple_bin/in

This file was deleted.

1 change: 0 additions & 1 deletion tests/snapshots/init/simple_git/in

This file was deleted.

1 change: 0 additions & 1 deletion tests/snapshots/init/simple_hg/in

This file was deleted.

1 change: 0 additions & 1 deletion tests/snapshots/init/simple_lib/in

This file was deleted.

1 change: 0 additions & 1 deletion tests/snapshots/init/with_argument/stderr.log

This file was deleted.

Empty file.
Loading

0 comments on commit 9c61a3d

Please sign in to comment.