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.
Version: | 0.4.2 |
Imports: | testthat |
Suggests: | knitr, rmarkdown (≥ 1.0), R6 |
Published: | 2019-09-03 |
Author: | Noam Finkelstein [aut], Lukasz Bartnik [aut], Jim Hester [cre] |
Maintainer: | Jim Hester <jim.hester at rstudio.com> |
BugReports: | https://github.com/jfiksel/mockery/issues |
License: | MIT + file LICENSE |
URL: | https://github.com/jfiksel/mockery |
NeedsCompilation: | no |
Materials: | README NEWS |
CRAN checks: | mockery results |
Reference manual: | mockery.pdf |
Vignettes: |
Mocks: Integrating with testthat |
Package source: | mockery_0.4.2.tar.gz |
Windows binaries: | r-devel: mockery_0.4.2.zip, r-release: mockery_0.4.2.zip, r-oldrel: mockery_0.4.2.zip |
macOS binaries: | r-release: mockery_0.4.2.tgz, r-oldrel: mockery_0.4.2.tgz |
Old sources: | mockery archive |
Reverse imports: | githubinstall, zoltr |
Reverse suggests: | AlphaVantageClient, bench, checkpoint, civis, cli, conflr, covr, cpp11, cranlike, crayon, data.tree, debugme, devtools, evaluator, googleCloudVisionR, imagefluency, keyring, languageserver, lintr, metaDigitise, miniCRAN, mknapsack, MMAPPR2, MtreeRing, newsanchor, orderly, overture, pak, petro.One, pkgcache, pkgsearch, prettycode, rcmdcheck, rdoc, remotes, rGoodData, rromeo, RTD, rversions, sankey, secret, sentryR, sessioninfo, shinyobjects, tracer, vaultr, whoami, xml2 |
Please use the canonical form https://CRAN.R-project.org/package=mockery to link to this page.