-
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
Revamp tests #255
Revamp tests #255
Conversation
@Robinlovelace I know that it might be difficult to understand all the stuff, but if you have time to review, please do |
Looks like some serious changes to the testing code, and if it allows tests to run in a more isolated environment that's good. However I don't feel I have the experience to review this, could we ask someone from rOpenSci to take a look? |
…g setup_pbf() + added more details in the docs
If you know anybody that would like to review the PR please ask, otherwise I think we can simply merge and then worry when one of the tests breaks. The main changes are summarised in the |
Any news here? |
None from me but happy for this to be merged. |
Revamp the existing tests using the so-called test fixtures: https://testthat.r-lib.org/articles/test-fixtures.html
The main benefit of the new approach is that each test is explicitly run in a clean and independent session (so each time the PBF file is copied to the
tempdir()
and removed at the end of the test). That helped me a lot to detect problems in the old version of the tests. The main con is that this might be extremely difficult to modify in a few months, let's see 😅