Skip to content

Cannot use testthat::with_mocked_bindings() #11

Closed

Description

@ak-finccam

Right now, when I load an R package with loadfast, I cannot use testthat::with_mocked_bindings(). It will tell me that there are no packages loaded with pkgload.

I would like to use testthat::with_mocked_bindings() so that I can mock functions for a certain block of code.

We need to figure out a way to do this. The first step should be reproducing the issue. The next step is thinking about solutions: Can we extend loadfast so that this works or should we provide a separate with_mock()-like function. In this case, this function should at best be compatible with devtools::load_all() as well as loadfast.

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions