Package: testit 1.3.2
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.3.2.tar.gz
testit_1.3.2.zip(r-4.7-any)testit_1.3.2.zip(r-4.6-any)testit_1.3.2.zip(r-4.5-any)
testit_1.3.2.tgz(r-4.6-any)testit_1.3.2.tgz(r-4.5-any)
testit_1.3.2.tar.gz(r-4.7-any)testit_1.3.2.tar.gz(r-4.6-any)
testit_1.3.2.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:88379f3786. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 102 | ||
| source / vignettes | OK | 133 | ||
| linux-release | OK | 86 | ||
| macos-release | OK | 90 | ||
| macos-oldrel | OK | 106 | ||
| windows-devel | OK | 68 | ||
| windows-release | OK | 66 | ||
| windows-oldrel | OK | 53 | ||
| wasm-release | OK | 83 |
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 |
