Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(test): Remove temp files created during integration tests #1621

Merged
merged 1 commit into from
May 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```
$ sentry-cli debug-files bundle-jvm --output i-do-not-exist --debug-id 0B693ABA-531C-4EB6-99E4-B7320C3C85DA tests/integration/_fixtures/jvm
$ sentry-cli debug-files bundle-jvm --output i-do-not-exist --debug-id 0B693ABA-531C-4EB6-99E4-B7320C3C85DA jvm
? success
> Found 2 files
> Bundled 2 files for upload
Expand Down
11 changes: 11 additions & 0 deletions tests/integration/debug_files/bundle_jvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ fn command_bundle_jvm_help() {

#[test]
fn command_bundle_jvm_out_not_found_creates_dir() {
let testcase_cwd =
"tests/integration/_cases/debug_files/debug_files-bundle-jvm-output-not-found.in/";
let testcase_cwd_path = std::path::Path::new(testcase_cwd);
if testcase_cwd_path.exists() {
remove_dir_all(testcase_cwd_path).unwrap();
}
copy_recursively(
"tests/integration/_fixtures/jvm",
testcase_cwd_path.join("jvm"),
)
.unwrap();
let _upload_endpoints = mock_common_upload_endpoints(ServerBehavior::Legacy);
register_test("debug_files/debug_files-bundle-jvm-output-not-found.trycmd");
}
Expand Down