-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maybe change suggested use_cassette usage? #86
Milestone
Comments
sckott
added a commit
to ropensci-archive/zbank
that referenced
this issue
Jan 10, 2019
…rway around via ropensci/vcr#86 bump dev version
Wouldn't this also be an option? test_that("foobar works", {
vcr::use_cassette("foobar", {
a <- foobar()
})
expect_is(a, "character")
}) Or rather, is there a problem with it, I am not seeing ATM? Traceback seems to work with it. |
You're right. Thanks for the ping on this. I'll add to the docs the various ways you can arrange the code blocks and test lines |
sckott
added a commit
to ropensci-books/http-testing
that referenced
this issue
Jan 16, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have been doing (assume the
expect_is
call fails)But when the
expect_is
line fails, the traceback gives the line for thevcr::use_cassette
call, instead of theexpect_is
line.if we change to:
the traceback points to the actual test line that failed
Make sure this doesn't lead to othe problems
The text was updated successfully, but these errors were encountered: