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

Non-interactive debug reporter #2028

Open
JosiahParry opened this issue Nov 16, 2024 · 0 comments
Open

Non-interactive debug reporter #2028

JosiahParry opened this issue Nov 16, 2024 · 0 comments

Comments

@JosiahParry
Copy link

I'm in a scenario where devtools::check() consistently fails at the testing suite state. However devtools::test() consistently succeeds. I need to be able to see the output from stdout and stderr to get some sort of insight into what is happening.

I am now using the DebugReporter with test_check() in my tests/testthat.R file. However this results in a test error

   Running the tests intests/testthat.Rfailed.
   Last 13 lines of output:
     * checking for sufficient/correct file permissions ... OK
     * checking whether packagetestpkgcan be installed ... ERROR
     Installation failed.
     See/private/var/folders/wd/xq999jjj3bx2w8cpg7lkfxlm0000gn/T/Rtmp7PURPN/working_dir/RtmpaMEiii/file14ff570bd8463/testpkg.Rcheck/00install.outfor details.
     * DONE
     
     Status: 1 ERROR
     See/private/var/folders/wd/xq999jjj3bx2w8cpg7lkfxlm0000gn/T/Rtmp7PURPN/working_dir/RtmpaMEiii/file14ff570bd8463/testpkg.Rcheck/00check.logfor details.
     
     Error in utils::menu(choices, title = title) : 
       menu() cannot be used non-interactively
     Calls: test_check ... <Anonymous> -> recover2 -> show_menu -> <Anonymous>
     Execution halted

because the debug reporter tries to recover using utils::menu().

It would be great if there were a reporter that can be used to debug non-interactive scenarios.

Right now I have no way to debug my devtools::check() and the help from the DebugReporter is make it a bit better but also making it tougher to sift through due to the additional error.

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