Learn R Programming

hySpc.testthat (version 0.2.2)

Unit Test Add-on for 'testthat'

Description

Enhance package 'testthat' by allowing tests to be attached to the function/object they test. This allows to keep functional and unit test code together.

Copy Link

Version

Install

install.packages('hySpc.testthat')

Monthly Downloads

267

Version

0.2.2

License

MIT + file LICENSE

Maintainer

Claudia Beleites

Last Published

December 22nd, 2025

Functions in hySpc.testthat (0.2.2)

test<-

Attach unit tests to objects
get_test

Get test that is attached to object as "test" attribute
unittest

Run unit tests
test_fun

Run test attached to function