The R Tests Gallery

It's a collection of testing patterns I've successfully used in production.

The collection will grow over time, so subscribe to stay updated!

Subscription also gives you updates from the blog

Examples

Plumber API

Use this pattern to test that a Plumber API responds to requests as expected. Launch API in a background process with mirai and make requests with httr2.

Haven't found what you're looking for?

Tell me what you struggle with in R testing, let's create a comprehensive list of examples together!

Submit a request