Write Testthat Tests

Write comprehensive testthat (edition 3) tests for R package functions. Covers test organization, expectations, fixtures, mocking, snapshot tests, parameterized tests, and achieving high coverage. Use when adding tests for new package functions, increasing test coverage for existing code, writing regression tests for bug fixes, or setting up test infrastructure for a package that lacks it.

pjt222 Updated

File contents

pjt222/agent-almanac/tree/main/skills/write-testthat-tests commit 6cd40548ab

Frequently asked questions

npx skillmds@latest add pjt222/write-testthat-tests