-
Notifications
You must be signed in to change notification settings - Fork 14
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
.vsc.cat
is incompatible with testthat::expect_output
and tinytest::expect_stdout
#196
Comments
Same problem with tinytest:
|
.vsc.cat
is incompatible with testthat::expect_output
.vsc.cat
is incompatible with testthat::expect_output
and tinytest::expect_stdout
Thanks for opening this issue. This is the expected behavior of You can stop the debugger from overwriting Hope this helps! |
Update: I just realized the debug config entry |
@ManuelHentschel Thanks! Indeed, in my example repo this setting worked perfectly to eliminate erroneous test failures. I will try it out in my main project(s) and report back if I hit any other issues. Feel free to close this issue. Other doc changes that may be helpful:
|
Describe the bug
.vsc.cat does not emit output in such a way that
testthat::expect_output
observes it.Impact: when running tests in debug mode, some tests erroneously fail.
To Reproduce
Run these two lines:
Your Launch config
N/A
This can be reproduced with R alone.
Expected behavior
Above two lines to produce the same result (no failure, no output).
Actual behavior
First line with base::cat produces no output (expectation is met).
Second line with vscDebugger::.vsc.cat raises an error (expectation not met).
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: