Package: testit 1.0.1
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.0.1.tar.gz
testit_1.0.1.zip(r-4.7)testit_1.0.1.zip(r-4.6)testit_1.0.1.zip(r-4.5)
testit_1.0.1.tgz(r-4.6-any)testit_1.0.1.tgz(r-4.5-any)
testit_1.0.1.tar.gz(r-4.7-any)testit_1.0.1.tar.gz(r-4.6-any)
testit_1.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
testit/json (API)
NEWS
| # 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:f836795374. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 100 | ||
| source / vignettes | OK | 131 | ||
| linux-release-x86_64 | OK | 97 | ||
| macos-release-arm64 | OK | 61 | ||
| macos-oldrel-arm64 | OK | 73 | ||
| windows-devel | OK | 69 | ||
| windows-release | OK | 70 | ||
| windows-oldrel | OK | 53 | ||
| wasm-release | OK | 83 |
Exports:%==%asserthas_errorhas_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 an expression signals a condition | has_error has_message has_warning |
| Run all tests for a package | test_pkg |
