R package testing with testthat 3rd edition. Use when writing R tests, fixing failing tests, debugging errors, or reviewing coverage—e.g., "write testthat tests", "fix failing R tests", "snapshot testing", "test coverage".
95
95%
Does it follow best practices?
Impact
93%
1.25xAverage score across 3 eval scenarios
Passed
No known issues
Package test initialization and file organization
Edition 3 initialization
100%
100%
use_r() for source files
0%
100%
use_test() for test files
100%
100%
Mirrored naming for validate
100%
100%
Mirrored naming for report
100%
100%
helper- file created
100%
100%
setup- file created
25%
100%
setup- file purpose explained
30%
70%
glue for dynamic descriptions
0%
100%
glue in DESCRIPTION Suggests
0%
0%
Behavioral descriptions
100%
100%
Test state isolation and file system safety
No library() for package
0%
100%
withr for options
100%
100%
withr for env vars
100%
100%
temp file for output
100%
100%
test_path for fixtures
100%
100%
No inter-test dependencies
100%
100%
expect_equal for numerics
100%
0%
library() problem identified
0%
100%
State leak problem identified
100%
100%
File write problem identified
100%
100%
BDD syntax and snapshot testing patterns
describe()/it() for format_table
100%
100%
Pending it() specs
100%
100%
No test_that nested in describe
100%
100%
Snapshot for plain style
100%
100%
Snapshot for markdown style
100%
100%
transform to strip timestamp
50%
100%
variant for platform
100%
100%
Unit tests in separate file
100%
100%
snapshot_review in workflow
50%
100%
Review described as mandatory
41%
100%
b74de5e
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.