-
Notifications
You must be signed in to change notification settings - Fork 4
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
[chore] tidy testing environment #106
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @zkamvar !
Fix for 2. I'm very happy to accept. Much cleaner indeed and makes working interactively with tests much smoother.
Regarding testthis
, it is listed in Suggests
and I would expect anyone contributing code to install the full list of dependencies and be able to run the full suite of tests, build all docs etc before making a PR. So I would prefer to remove those skips
Co-authored-by: Anna Krystalli <[email protected]>
That's fair. I've removed them. Feel free to squash-merge this since it amounts to exactly one change effectively. |
Honestly I'm not 100% percent how to do that. Is it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good!
I noticed that I was getting errors during testing because of a couple of factors unrelated to the actual validity of the code:
testthis
installedtempdir()
are not cleaned up leading to errors when re-running the tests because the folders are not empty.I fixed the first with
skip_if_not_installed()
and the second by usingwithr::local_tempdir()