use_httptest2 {httptest2}R Documentation

Use 'httptest2' in your tests

Description

This function adds httptest2 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_httptest2(path = ".")

Arguments

path

character path to the package

Details

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

Value

Nothing: called for file system side effects.


[Package httptest2 version 1.1.0 Index]