check if vcr works with tinytest and testit
- [ ] tinytest
- [ ] testit
started on this on branch https://github.com/ropensci/vcr/compare/tinytest
did it work?
don't remember, so long ago now. i don't think it worked, OR I didn't fully test it yet, not sure which one
Ok
tinytest stores/expects test_*.R files in inst/tinytest, rather than tests/tinytest, so at the very least we'd have to adapt vcr_test_path() to that (assuming that tinytest also sets the working dir to inst/tinytest during tests).
thanks @dpprdan - if anyone has time to check if vcr works with these two pkgs ...
@sckott Be happy to work on tinytest:: testing. Also have worked with httr:: and httr2:: Will fork clone and use the branch already setup https://github.com/ropensci/vcr/compare/tinytest
jim
thanks @jimrothstein ! sounds great
@sckott
working just locally, writing **tinytest** functions roughly equivalent to **testthat** functions ( so far for test_Filesystem.Randtest_Cassette.R`) When I have couple more R files tested will try again to push.
figured it out! ~~Not quite sure how to write separate package with just tinytest and library(vcr). Don't the test files need to included in source package?~~
great!
@sckott Quick update: tinytests are coming along, but reading through some of the source code, R6, configuration takes some time.
ok, thanks for the update
@sckott Update. This is rough, rough, very rough. WIP. But tinytests are beginning to work and various pieces make more sense to me. Will get faster. Example: https://github.com/jimrothstein/test_vcr/blob/master/inst/tinytest/test_configure.R
@jimrothstein sounds good
@sckott Bunch of tinytests seems to be working. Before I get too much further, I like to get my package {testVCR} into form you can review. (There are still loose ends or temp files that need cleanup. And, of course, many more tests to write.)
https://github.com/jimrothstein/test_vcr/tree/master/inst/tinytest
@sckott - just another ping, to see if I'm heading in right direction.