Skip to content

Commit 9c61a3d

Browse files
committed
Auto merge of #10638 - Muscraft:move-snapshot-tests, r=epage
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`
2 parents 6878c43 + 639f3bd commit 9c61a3d

File tree

955 files changed

+3773
-3110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

955 files changed

+3773
-3110
lines changed

crates/cargo-test-support/src/lib.rs

+7
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ macro_rules! t {
3232
};
3333
}
3434

35+
#[macro_export]
36+
macro_rules! curr_dir {
37+
() => {
38+
std::path::Path::new(file!()).parent().unwrap()
39+
};
40+
}
41+
3542
#[track_caller]
3643
pub fn panic_error(what: &str, err: impl Into<anyhow::Error>) -> ! {
3744
let err = err.into();

tests/snapshots/init/auto_git/in

-1
This file was deleted.

tests/snapshots/init/explicit_bin_with_git/in

-1
This file was deleted.

tests/snapshots/init/simple_bin/in

-1
This file was deleted.

tests/snapshots/init/simple_git/in

-1
This file was deleted.

tests/snapshots/init/simple_hg/in

-1
This file was deleted.

tests/snapshots/init/simple_lib/in

-1
This file was deleted.

tests/snapshots/init/with_argument/stderr.log

-1
This file was deleted.

tests/snapshots/init/with_argument/stdout.log

Whitespace-only changes.

0 commit comments

Comments
 (0)