Skip to content
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

possibly use cached taxize objects for test suite? #32

Open
sckott opened this issue Mar 28, 2018 · 6 comments
Open

possibly use cached taxize objects for test suite? #32

sckott opened this issue Mar 28, 2018 · 6 comments

Comments

@sckott
Copy link
Contributor

sckott commented Mar 28, 2018

This might be a bit tricky, but I guess whenever there's a new version of taxize on cran, then we can re-create the cached objects from taxize - then the test suite here won't fail due to failures in taxize (a lot of failures happen in taxize due to one or more of the many web services being down)

thoughts @arendsee ?

@sckott
Copy link
Contributor Author

sckott commented Mar 28, 2018

related to 1031a57

@arendsee
Copy link
Collaborator

That sounds reasonable. Also caching would speed up running the tests, which are pretty slow right now. Another nice thing about caching is that we can specify exactly what version of taxize we are testing against, and it won't slip around on us and break mysteriously.

@sckott
Copy link
Contributor Author

sckott commented Mar 29, 2018

Right - we can use my pkg vcr eventually, but for now we can do it manually

@arendsee
Copy link
Collaborator

arendsee commented Apr 5, 2018

@sckott I played a little with this. I'm a worried that it would become messy and hard to maintain, though.

This

expect_equal
  taxizedb::children("asdfasdf", db='ncbi'),
  taxize::children("asdfasdf", db='ncbi')
)

is a lot clearer than this

expect_equal(
  taxizedb::children("asdfasdf", db='ncbi'),
  readRDS("test123.Rda")
)

Can you think of a cleaner approach?

@sckott
Copy link
Contributor Author

sckott commented Apr 5, 2018

here's a vcr example 9fa5420 on a diff. branch

but i'm still working on some bugs (See https://github.com/ropensci/vcr/milestone/1) - if i can get it to cran soon then we can use it

@maelle maelle closed this as completed Sep 9, 2022
@maelle
Copy link
Member

maelle commented Sep 9, 2022

unarchiving it thanks to @stitam 😸

@maelle maelle reopened this Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants