Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-33313

R/run-tests.sh is not compatible with testthat >= 3.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0, 3.1.0
    • 2.4.8, 3.0.2, 3.1.0
    • R, Tests
    • None

    Description

      Currently we use testthat:::test_package_dir to run full SparkR tests with testthat > 1.0. However, it has been dropped in testthat 3.0 (https://github.com/r-lib/testthat/pull/1054).

      Because of that AppVeyor tests fail with

      Spark package found in SPARK_HOME: C:\projects\spark\bin\..
      Error in get(name, envir = asNamespace(pkg), inherits = FALSE) : 
        object 'test_package_dir' not found
      Calls: ::: -> get
      Execution halted
      

      It seems like we can use testthat::test_dir which, since testthat 3.0, supports package parameter.

      Attachments

        Activity

          People

            zero323 Maciej Szymkiewicz
            zero323 Maciej Szymkiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: