mockery: Mocking Library for R
Version 0.3.0

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.

Package details

AuthorNoam Finkelstein [aut, cre], Lukasz Bartnik [aut]
Date of publication2016-12-16 08:33:58
MaintainerNoam Finkelstein <>
LicenseMIT + file LICENSE
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the mockery package in your browser

Any scripts or data that you put into this service are public.

mockery documentation built on May 29, 2017, 8:13 p.m.