-
Notifications
You must be signed in to change notification settings - Fork 9
Style Guide for Unit Tests
Ben Straub edited this page Apr 28, 2023
·
4 revisions
- Avoid using
::
unless you need a function not available in https://github.com/atorus-research/xportr/blob/main/R/xportr-package.R -
withr::
is acceptable
All tests should start with the function_name
, colon and then a short but illuminating subject.
For example,
- test_that("xportr_fcn_name: Succinct but well-thought out test subject", {
- Use the Minimal tests function/data in the
.R
folder