use_httptest: Use 'httptest' in your tests

View source: R/use-httptest.R

use_httptestR Documentation

Use 'httptest' in your tests

Description

This function adds httptest to Suggests in the package DESCRIPTION and loads it in tests/testthat/setup.R. Call it once when you're setting up a new package test suite.

Usage

use_httptest(path = ".")

Arguments

path

character path to the package

Details

The function is idempotent: if httptest is already added to these files, no additional changes will be made.

Value

Nothing: called for file system side effects.


nealrichardson/httptest documentation built on Feb. 5, 2024, 12:35 a.m.