-
Notifications
You must be signed in to change notification settings - Fork 0
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
Let's start using testthat 3? #19
Comments
Good plan
Sent from an undisclosed location - check with the NSA.
… On Aug 1, 2021, at 2:47 PM, Vilmantas Gegzna ***@***.***> wrote:
There were changes in testthat engine 3. Please, read https://testthat.r-lib.org/articles/third-edition.html especially section "Deprecations". Then let's decide if we should start using testthat 3 syntax in the new unit tests and systematically start updating old tests to match testthat 3.
I suggest:
making hySpc.testthat depend on testthat v3.0.0 so that there were no unexpected things while testing on different user's machines.
making hyperSpec family packages to depend on the updated version of hySpc.testthat (which depends on testthat v3.0.0).
adding Config/testthat/edition: 3 to DESCRIPTION file of packages.
using only testthat 3 in the new tests.
if possible, updating syntax in currently existing tests.
adding explicit local_edition(2) to the currently existing that that we do not have time to properly update now.
What do you think, @cbeleites, @sangttruong, @bryanhanson?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I also think this is the way to go. However, I think it has further implications - we'd likely need to move from hySpc.testthat to the usual More in the meeting. |
👍 |
Just a gentle reminder, there is a package
|
@bryanhanson thanks for the reminder - I was thinking that something along these lines may be the way to go :-) This will also allow to step down from a Dependency on hySpc.testthat which creates a whole bunch of further dependencies via testthat back to a Suggestion only. |
There were changes in
testthat
engine 3. Please, read https://testthat.r-lib.org/articles/third-edition.html especially section "Deprecations". Then let's decide if we should start usingtestthat
3 syntax in the new unit tests and systematically start updating old tests to matchtestthat
3.I suggest:
hySpc.testthat
depend ontestthat
v3.0.0 so that there were no unexpected things while testing on different user's machines.hySpc.testthat
(which depends ontestthat
v3.0.0).Config/testthat/edition: 3
to DESCRIPTION file of packages.testthat
3 in the new tests.local_edition(2)
to the currently existing that that we do not have time to properly update now.What do you think, @cbeleites, @sangttruong, @bryanhanson?
The text was updated successfully, but these errors were encountered: