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.

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

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