You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following trace in the build pane on Windows. I am noting that the expect_no_error() traceback takes 11 lines, but it doesn't seem very interesting to know that expect_no_error calls all these functions? Lines 2 to 11 don't feel relevant to me.
Is there a solution for that?
Verify also if the trace from expect_warning(regexp = NA) is smaller?
The text was updated successfully, but these errors were encountered:
The mechanisms exist in rlang to trim the call stack; the challenge will be figuring out exactly what should form the top of the callstack and how do we get that information to where the back trace is generated.
I think I'm going to close this, just because when we've tried to automatically minimise the stack we've hit a case where we accidentally hide info that we do actually want.
if I have the following
test_that("test", { expect_no_error(function_that_throws_a_warning()) })
I get the following trace in the build pane on Windows. I am noting that the
expect_no_error()
traceback takes 11 lines, but it doesn't seem very interesting to know that expect_no_error calls all these functions? Lines 2 to 11 don't feel relevant to me.Is there a solution for that?
Verify also if the trace from
expect_warning(regexp = NA)
is smaller?The text was updated successfully, but these errors were encountered: