Skip to content

Could the stack trace of expect_no_*() be reduced?Β #1965

@olivroy

Description

@olivroy

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.

image

Is there a solution for that?

Verify also if the trace from expect_warning(regexp = NA) is smaller?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions