Skip to content

Use HTTP testing framework to cache/mock response objects in tests #14

@PietrH

Description

@PietrH

Currently the tests require 100MB+ of internet traffic to run, I suspect this number will only grow as we add more data sources. Not only are we already running into failed tests because of timeouts or server side failures from time to time, this IO also slows down the tests, increases costs for data hosting (aloft bucket, and increases the environmental impact of this package (via CI).

I propose we investigate the packages from the HTTP testing handbook; https://books.ropensci.org/http-testing/pkgs-comparison.html and see if any are suitable.

The fact that the objects we test on are so big might be an issue, but as a counterpoint, we might not actually need to test on complete real world data objects, but might get away with subsets which we mock/cache.

I've used vcr before, but only for much smaller objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions