Package: unitizer 1.4.21

unitizer: Interactive R Unit Tests

Simplifies regression tests by comparing objects produced by test code with earlier versions of those same objects. If objects are unchanged the tests pass, otherwise execution stops with error details. If in interactive mode, tests can be reviewed through the provided interactive environment.

Authors:Brodie Gaslam [aut, cre], R Core Team [cph]

unitizer_1.4.21.tar.gz
unitizer_1.4.21.zip(r-4.5)unitizer_1.4.21.zip(r-4.4)unitizer_1.4.21.zip(r-4.3)
unitizer_1.4.21.tgz(r-4.4-any)unitizer_1.4.21.tgz(r-4.3-any)
unitizer_1.4.21.tar.gz(r-4.5-noble)unitizer_1.4.21.tar.gz(r-4.4-noble)
unitizer_1.4.21.tgz(r-4.4-emscripten)unitizer_1.4.21.tgz(r-4.3-emscripten)
unitizer.pdf |unitizer.html
unitizer/json (API)
NEWS

# Install 'unitizer' in R:
install.packages('unitizer', repos = c('https://brodieg.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/brodieg/unitizer/issues

On CRAN:

unit-testing

7.09 score 39 stars 84 scripts 1.2k downloads 1 mentions 30 exports 2 dependencies

Last updated 8 months agofrom:fac3c959c6. Checks:5 OK, 2 NOTE. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKJan 17 2025
R-4.5-winNOTEJan 17 2025
R-4.5-linuxNOTEJan 17 2025
R-4.4-winOKJan 17 2025
R-4.4-macOKJan 17 2025
R-4.3-winOKJan 17 2025
R-4.3-macOKJan 17 2025

Exports:[Press ENTER to Continue]all_eqall.equalappendconditionListcopy_fastlm_to_tmpdirdesceditCallsfilename_to_storeidget_unitizerhealEnvsin_pkginfer_unitizer_locationmock_itemrepair_environmentsreviewset_unitizershowshow_filestatetestFunstestthat_translate_dirtestthat_translate_filetestthat_translate_nameunitizeunitize_dirunitizer_check_demo_stateunitizer_cleanup_demounitizer_sectupdate_fastlm

Dependencies:crayondiffobj

unitizeR - Summary of Vignettes

Rendered fromu0_unitizer_index.Rmdusingknitr::rmarkdownon Jan 17 2025.

Last update: 2020-03-02
Started: 2018-01-06

unitizer - Interactive R Unit Tests

Rendered fromu1_intro.Rmdusingknitr::rmarkdownon Jan 17 2025.

Last update: 2022-03-23
Started: 2018-01-06

unitizeR - Test Details

Rendered fromu2_tests.Rmdusingknitr::rmarkdownon Jan 17 2025.

Last update: 2022-03-23
Started: 2018-01-06

unitizeR - The Interactive Environment

Rendered fromu3_interactive-env.Rmdusingknitr::rmarkdownon Jan 17 2025.

Last update: 2021-08-02
Started: 2018-01-06

unitizeR - Reproducible Tests

Rendered fromu4_reproducible-tests.Rmdusingknitr::rmarkdownon Jan 17 2025.

Last update: 2022-03-23
Started: 2018-01-06

unitizeR - Miscellanea

Rendered fromu5_miscellaneous.Rmdusingknitr::rmarkdownon Jan 17 2025.

Last update: 2022-03-23
Started: 2020-03-02

Readme and manuals

Help Manual

Help pageTopics
Retrieve Test Contents From Test Item$,unitizerItem-method $.unitizerItem [[,unitizerItem,ANY-method
Like all.equal but Returns Empty String If Not all.equalall_eq
Compare Conditionsall.equal,condition,ANY-method all.equal,conditionList,ANY-method all.equal.condition all.equal.conditionList
Contains A List of ConditionsconditionList conditionList-class
One Line Description of Objectdesc
Edit Calls In UnitizereditCalls editCalls,unitizer,language,language-method
Create a Store ID from a Test File Namefilename_to_storeid
Fix Environment AncestrieshealEnvs healEnvs,unitizerItems,unitizer-method
Infers Possible Unitizer Path From Contextinfer_unitizer_location infer_unitizer_location.character infer_unitizer_location.default
Generates a Dummy Item For Use in Examplesmock_item
Repair Environment Chainsrepair_environments
Set and Retrieve Store Contentsget_unitizer get_unitizer.character get_unitizer.default get_unitizer.unitizer_result get_unitizer.unitizer_results set_unitizer
Prints A list of Conditionsshow,conditionList-method show.conditionList
Store Functions for New vs. Reference Test ComparisonstestFuns
Convert a 'testthat' Test File to a 'unitizer'testthat_translate_dir testthat_translate_file testthat_translate_name
Unitize an R Test Scriptreview unitize unitize_dir
unitizerunitizer-package unitizer
Demo Details and Helper Functionscopy_fastlm_to_tmpdir show_file unitizer_check_demo_state unitizer_cleanup_demo unitizer_demo update_fastlm [Press ENTER to Continue]
Return Values and Related Methods for 'unitize' Functionsprint.unitizer_result print.unitizer_results unitizer_result unitizer_results
Define a 'unitizer' Sectionunitizer_sect
Unitizer Optionsunitizer.opts
S4 Object To Implement Base List MethodsunitizerList
Tests and Session Statein_pkg state state, unitizerState