Releases: ropensci/vcr
Releases · ropensci/vcr
vcr v0.3.0
NEW FEATURES
- new internal method
up_to_date_interactions
incassette_class
now allows filtering cassettes by user specified date (#96) (#104) - re-recording now works - see new
use_casette()
parametersre_record_interval
andclean_outdated_http_interactions
; you can now set a re-record interval (in seconds) so that you can for example always re-record cassettes if you don't want cassettes to be more than X days old; depends on new internal methodup_to_date_interactions
(#104) (#105)
MINOR IMPROVEMENTS
- fix link to HTTP Testing Book: ropensci -> ropenscilabs (#100)
- add new section to HTTP Testing Book on "vcr enabled testing" with sub-sections on check vs. test, your package on CRAN, and your package on continuous integration sites (#102)
BUG FIXES
- fix request body matching - partly through fixes to
webmockr
package (requires v0.4 or greater); more generally, makes single type request matching (e.g., just HTTP method, or just URL) possible, it was not working before, but is now working; added examples of doing single type matching (#70) (#76) (#108) - fixed type in
cassette_class
where typo lead to not setting headers correctly in thewebmockr::wi_th()
call (#107)
vcr v0.2.6
NEW FEATURES
- gains function
use_vcr()
to setupvcr
for your package. This requires 3 pkgs all in Suggests; so are not required if you don't need to useuse_vcr()
(#52) (#95) thanks @maelle for the feedback! vcr
actually supports all four recording modes:none
,once
,new_episodes
, andall
.once
is what's used by default. See?recording
for description of the recording modes. For now the test file test-ause_cassette_record_modes.R gives some examples and what to expect for each record mode; in the future the http testing book will have much more information in the Record modes chapter https://ropensci.github.io/http-testing-book/record-modes.html (commit)
MINOR IMPROVEMENTS
- lots of tidying for better/consistent style
- fix for a partial argument call in
as.list()
:all
toall.names
(commit)
BUG FIXES
- error thrown with
httr
due to wrong date format. the problem was in thewebmockr
package. see ropensci/webmockr#58 (#91) thanks @Bisaloo - fix for
use_cassette()
when usinghttr
: we weren't collectingstatus_code
and storing it with the cassette (#92) thanks @Bisaloo - fixes for
use_cassette()
forhttr
: was working fine with a single httr request, but not with 2 or more (#93) (#94) thanks @Rekyt - in error blocks with
use_cassette()
the URL is presented from the request, and if there's a secret (API key) in the URL as a query parameter (or in any other place in the URL) then that secret is shown to the world (including if the error block happens on CI on the public web). This is fixed now; we use directives from yourfilter_sensitive_data
call invcr_configure()
to mask secrets in error messages (#89) (#90)
vcr v0.2.2
MINOR IMPROVEMENTS
- typo fixes (#85) thanks @Rekyt
- added to docs: at least one person has reported different results using
vcr
withdevtools::check
vs.devtools::test
(#83) - changed suggested usage of
vcr
in test suites fromuse_cassette
block wrapped intest_that
to the other way around; leads totestthat
pointing to the actual test line that failed rather than pointing to the start of theuse_cassette
block (#86)
BUG FIXES
- Fix for
%||%
internal function. Was incorrectly doing logical comparison; when headers list was passed one or more of the tests in the if statement had length > 1. Dev R is testing for this (#87)
vcr v0.2.0
vcr v0.1.0
vcr 0.1.0
NEW FEATURES
- released to CRAN