-
Notifications
You must be signed in to change notification settings - Fork 342
Description
This is about better support for tests that should not cause R CMD check failures because they are testing output that is not under the developer's control, at least not entirely. For instance, rlang has a lot of expect_known_output() tests for the backtraces. These outputs sometimes change across R versions, e.g. because eval() produces a different backtrace. Another case is vdiffr tests, because the appearance of plots is sensitive to upstream code such as computation of margins or spacing between elements.
Such tests should fail on platforms where the CI envvar is set (Travis, Appveyor), or where the NOT_CRAN envvar is set (tests run locally). This allows the developer to monitor and assess regressions during development.
@hadley suggested calling these tests regression tests. They could be implemented with a new expectation class expectation_regression.