Skip to content

Style Guide for Unit Tests

Ben Straub edited this page Apr 28, 2023 · 4 revisions

Use of :: in code

Test Styling

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 of test data

  • Use the Minimal tests function/data in the .R folder
Clone this wiki locally