httptest (Q63594)

From MaRDI portal
A Test Environment for HTTP Requests
Language Label Description Also known as
English
httptest
A Test Environment for HTTP Requests

    Statements

    4.1.0
    22 September 2021
    0 references
    4.2.0
    29 May 2023
    0 references
    1.0.0
    31 December 2016
    0 references
    1.1.0
    3 February 2017
    0 references
    1.2.0
    22 March 2017
    0 references
    1.3.0
    13 April 2017
    0 references
    2.0.0
    5 June 2017
    0 references
    2.1.0
    31 July 2017
    0 references
    2.1.2
    5 August 2017
    0 references
    2.3.2
    20 October 2017
    0 references
    2.3.4
    14 November 2017
    0 references
    3.0.0
    16 January 2018
    0 references
    3.1.0
    19 June 2018
    0 references
    3.2.0
    9 November 2018
    0 references
    3.2.2
    7 December 2018
    0 references
    3.3.0
    28 January 2020
    0 references
    4.0.0
    1 February 2021
    0 references
    4.2.1
    12 June 2023
    0 references
    4.2.2
    23 January 2024
    0 references
    0 references
    0 references
    23 January 2024
    0 references
    Testing and documenting code that communicates with remote servers can be painful. Dealing with authentication, server state, and other complications can make testing seem too costly to bother with. But it doesn't need to be that hard. This package enables one to test all of the logic on the R sides of the API in your package without requiring access to the remote service. Importantly, it provides three contexts that mock the network connection in different ways, as well as testing functions to assert that HTTP requests were—or were not—made. It also allows one to safely record real API responses to use as test fixtures. The ability to save responses and load them offline also enables one to write vignettes and other dynamic documents that can be distributed without access to a live server.
    0 references
    0 references
    0 references
    0 references
    0 references
    0 references
    0 references
    0 references
    0 references
    0 references

    Identifiers

    0 references