mockery: Mocking Library for R

The two main functionalities of this package are creating mock objects (functions) and selectively intercepting calls to a given function that originate in some other function. It can be used with any testing framework available for R. Mock objects can be injected with either this package's own stub() function or a similar with_mock() facility present in the testthat package.

Install the latest version of this package by entering the following in R:
install.packages("mockery")
AuthorNoam Finkelstein [aut, cre], Lukasz Bartnik [aut]
Date of publication2016-12-16 08:33:58
MaintainerNoam Finkelstein <noam.finkelstein@jhu.edu>
LicenseMIT + file LICENSE
Version0.3.0
https://github.com/n-s-f/mockery

View on CRAN

Files

TODO
inst
inst/doc
inst/doc/mocks-and-testthat.R
inst/doc/mocks-and-testthat.html
inst/doc/mocks-and-testthat.Rmd
tests
tests/testthat.R
tests/testthat
tests/testthat/test_stub.R tests/testthat/test-mock-object.R
NAMESPACE
R
R/mockery.R R/mock-object.R R/expectations.R R/stub.R
vignettes
vignettes/mocks-and-testthat.Rmd
README.md
MD5
build
build/vignette.rds
DESCRIPTION
man
man/mock.Rd man/stub.Rd man/call-expectations.Rd man/mockery.Rd
LICENSE

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.