Skip to content

use testthat's dev version and mock_output_sequence() #211

Description

@maelle

r-lib/testthat#2061 was merged so you could (but don't have to)

  • you can install pak::pak("r-lib/testthat")
  • register the dependency in DESCRIPTION use_dev_package("testthat") -- it'd have to be removed before submission to CRAN if you intend to do that, so it'd have to be submitted after testthat's next release
  • replace your own helper with
  local_mocked_bindings(
    readline = mock_output_sequence("3", "This is a note", "n")
  )
  • delete helper_mock.R

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementFeature improvement or addition

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions