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 44 repo stars

File contents

pjt222/agent-almanac commit 6cd40548ab

Frequently asked questions

npx get-skill add pjt222/write-testthat-tests