Package: testit 1.2.3
testit: A Simple Package for Testing R Packages
A minimal, dependency-free testing framework for R packages. Write tests as simple R expressions that return TRUE, using assert() for assertions (with informative error messages on failure), has_error() / has_warning() / has_message() for testing conditions, and test_pkg() to run all tests with full access to internal (non-exported) package functions. Snapshot testing via Markdown files is also supported.
Authors:
testit_1.2.3.tar.gz
testit_1.2.3.zip(r-4.7-any)testit_1.2.3.zip(r-4.6-any)testit_1.2.3.zip(r-4.5-any)
testit_1.2.3.tgz(r-4.6-any)testit_1.2.3.tgz(r-4.5-any)
testit_1.2.3.tar.gz(r-4.7-any)testit_1.2.3.tar.gz(r-4.6-any)
testit_1.2.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
testit/json (API)
| # Install 'testit' in R: |
| install.packages('testit', repos = c('https://yihui.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/yihui/testit/issues
Last updated from:5b74de269d. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 107 | ||
| source / vignettes | OK | 128 | ||
| linux-release | OK | 80 | ||
| macos-release | OK | 80 | ||
| macos-oldrel | OK | 101 | ||
| windows-devel | OK | 55 | ||
| windows-release | OK | 70 | ||
| windows-oldrel | OK | 62 | ||
| wasm-release | OK | 82 |
Exports:%==%asserthas_errorhas_matchhas_messagehas_warningtest_pkg
Dependencies:
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Assert that conditions are true, with an informative failure message | %==% assert |
| Test whether a string matches a regular expression | has_match |
| Test whether an expression signals a condition | has_error has_message has_warning |
| Run all tests for a package | test_pkg |
