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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad interaction with utils::dump.frames() #2036

Open
MLopez-Ibanez opened this issue Dec 9, 2024 · 0 comments
Open

Bad interaction with utils::dump.frames() #2036

MLopez-Ibanez opened this issue Dec 9, 2024 · 0 comments

Comments

@MLopez-Ibanez
Copy link

My package uses:

utils::dump.frames(dumpto = "iracedump", to.file = TRUE, include.GlobalEnv = TRUE)

when finding a non-recoverable error in non-interactive mode to help debugging. However, when running under testthat and loading the file in the debugger(), it only shows:

Message:  Error: Test failures
Available environments had calls:
1: .GlobalEnv
2: test_check("irace")
3: test_dir("testthat", package = package, reporter = reporter, ..., load_pack
4: test_files(test_dir = path, test_paths = test_paths, test_package = package
5: test_files_serial(test_dir = test_dir, test_package = test_package, test_pa
6: test_files_check(reporters$list$get_results(), stop_on_failure = stop_on_fa
7: stop("Test failures", call. = FALSE)
8: (function () 
{
    execDir <- getOption(".irace.execdir")
    if (!is.null(ex

I wonder if there is anything that can be done to save the actual environments of the failed test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant