Skip to content

Let's start using testthat 3? #19

@GegznaV

Description

@GegznaV

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:

  1. making hySpc.testthat depend on testthat v3.0.0 so that there were no unexpected things while testing on different user's machines.
  2. making hyperSpec family packages to depend on the updated version of hySpc.testthat (which depends on testthat v3.0.0).
  3. adding Config/testthat/edition: 3 to DESCRIPTION file of packages.
  4. using only testthat 3 in the new tests.
  5. if possible, updating syntax in currently existing tests.
  6. 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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions