This is an automated email from the ASF dual-hosted git repository.

jiayu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sedona.git


The following commit(s) were added to refs/heads/master by this push:
     new 3796f0e1e1 [CI] bugfix(R): Fix testthat compatibility issues with 
version 3.3.0 (#2524)
3796f0e1e1 is described below

commit 3796f0e1e17f37075808a6c16898d6a73f6312bc
Author: Feng Zhang <[email protected]>
AuthorDate: Mon Nov 24 21:42:43 2025 -0800

    [CI] bugfix(R): Fix testthat compatibility issues with version 3.3.0 (#2524)
---
 R/tests/testthat.R                                  | 8 ++------
 R/tests/testthat/test-apply-spatial-partitioner.R   | 1 -
 R/tests/testthat/test-bounding-box.R                | 1 -
 R/tests/testthat/test-build-index.R                 | 1 -
 R/tests/testthat/test-crs-transform.R               | 1 -
 R/tests/testthat/test-data-interface-raster.R       | 1 -
 R/tests/testthat/test-data-interface.R              | 1 -
 R/tests/testthat/test-dbplyr-integration.R          | 1 -
 R/tests/testthat/test-init.R                        | 1 -
 R/tests/testthat/test-sdf-interface.R               | 1 -
 R/tests/testthat/test-spatial-join.R                | 1 -
 R/tests/testthat/test-spatial-queries.R             | 1 -
 R/tests/testthat/test-spatial-rdd-aggregation-fns.R | 1 -
 R/tests/testthat/test-viz.R                         | 1 -
 14 files changed, 2 insertions(+), 19 deletions(-)

diff --git a/R/tests/testthat.R b/R/tests/testthat.R
index 33c0f58f93..3bf45217cd 100644
--- a/R/tests/testthat.R
+++ b/R/tests/testthat.R
@@ -30,10 +30,6 @@ if (identical(Sys.getenv("NOT_CRAN"), "true")) {
   filter <- Sys.getenv("TESTTHAT_FILTER", unset = "")
   if (identical(filter, "")) filter <- NULL
 
-  reporter <- MultiReporter$new(reporters = list(
-    ProgressReporter$new(show_praise = FALSE),
-    CheckReporter$new(),
-    SummaryReporter$new(show_praise = FALSE)
-  ))
-  test_check("apache.sedona", filter = filter, reporter = reporter)
+  # Use default reporter to avoid compatibility issues with testthat 3.3.0
+  test_check("apache.sedona", filter = filter)
 }
diff --git a/R/tests/testthat/test-apply-spatial-partitioner.R 
b/R/tests/testthat/test-apply-spatial-partitioner.R
index 750a8469bf..56f813e6e8 100644
--- a/R/tests/testthat/test-apply-spatial-partitioner.R
+++ b/R/tests/testthat/test-apply-spatial-partitioner.R
@@ -15,7 +15,6 @@
 # specific language governing permissions and limitations
 # under the License.
 
-context("apply spatial partition")
 
 sc <- testthat_spark_connection()
 
diff --git a/R/tests/testthat/test-bounding-box.R 
b/R/tests/testthat/test-bounding-box.R
index 529dcedffc..0dfd5b069d 100644
--- a/R/tests/testthat/test-bounding-box.R
+++ b/R/tests/testthat/test-bounding-box.R
@@ -15,7 +15,6 @@
 # specific language governing permissions and limitations
 # under the License.
 
-context("bounding box")
 
 test_that("bounding box object works as expected", {
   sc <- testthat_spark_connection()
diff --git a/R/tests/testthat/test-build-index.R 
b/R/tests/testthat/test-build-index.R
index 2c0473e956..7dfa56119c 100644
--- a/R/tests/testthat/test-build-index.R
+++ b/R/tests/testthat/test-build-index.R
@@ -15,7 +15,6 @@
 # specific language governing permissions and limitations
 # under the License.
 
-context("build index")
 
 sc <- testthat_spark_connection()
 
diff --git a/R/tests/testthat/test-crs-transform.R 
b/R/tests/testthat/test-crs-transform.R
index ad89679614..7ba63f37bb 100644
--- a/R/tests/testthat/test-crs-transform.R
+++ b/R/tests/testthat/test-crs-transform.R
@@ -15,7 +15,6 @@
 # specific language governing permissions and limitations
 # under the License.
 
-context("CRS transform")
 
 test_that("crs_transform() works as expected", {
   sc <- testthat_spark_connection()
diff --git a/R/tests/testthat/test-data-interface-raster.R 
b/R/tests/testthat/test-data-interface-raster.R
index 96275d4a6a..01c88edfee 100644
--- a/R/tests/testthat/test-data-interface-raster.R
+++ b/R/tests/testthat/test-data-interface-raster.R
@@ -15,7 +15,6 @@
 # specific language governing permissions and limitations
 # under the License.
 
-context("data interface: raster")
 
 sc <- testthat_spark_connection()
 
diff --git a/R/tests/testthat/test-data-interface.R 
b/R/tests/testthat/test-data-interface.R
index 9aad2252b3..f24ae90282 100644
--- a/R/tests/testthat/test-data-interface.R
+++ b/R/tests/testthat/test-data-interface.R
@@ -15,7 +15,6 @@
 # specific language governing permissions and limitations
 # under the License.
 
-context("data interface")
 
 sc <- testthat_spark_connection()
 
diff --git a/R/tests/testthat/test-dbplyr-integration.R 
b/R/tests/testthat/test-dbplyr-integration.R
index 1298993f6c..bb16fc02a3 100644
--- a/R/tests/testthat/test-dbplyr-integration.R
+++ b/R/tests/testthat/test-dbplyr-integration.R
@@ -15,7 +15,6 @@
 # specific language governing permissions and limitations
 # under the License.
 
-context("dbplyr integration")
 
 sc <- testthat_spark_connection()
 
diff --git a/R/tests/testthat/test-init.R b/R/tests/testthat/test-init.R
index 9929f9478e..1cf756c352 100644
--- a/R/tests/testthat/test-init.R
+++ b/R/tests/testthat/test-init.R
@@ -15,7 +15,6 @@
 # specific language governing permissions and limitations
 # under the License.
 
-context("initialization")
 
 sc <- testthat_spark_connection()
 
diff --git a/R/tests/testthat/test-sdf-interface.R 
b/R/tests/testthat/test-sdf-interface.R
index 6cad2c4cd6..6f6d41ae21 100644
--- a/R/tests/testthat/test-sdf-interface.R
+++ b/R/tests/testthat/test-sdf-interface.R
@@ -15,7 +15,6 @@
 # specific language governing permissions and limitations
 # under the License.
 
-context("sdf interface")
 
 sc <- testthat_spark_connection()
 
diff --git a/R/tests/testthat/test-spatial-join.R 
b/R/tests/testthat/test-spatial-join.R
index 12d27432a7..d941561178 100644
--- a/R/tests/testthat/test-spatial-join.R
+++ b/R/tests/testthat/test-spatial-join.R
@@ -15,7 +15,6 @@
 # specific language governing permissions and limitations
 # under the License.
 
-context("spatial join")
 
 sc <- testthat_spark_connection()
 
diff --git a/R/tests/testthat/test-spatial-queries.R 
b/R/tests/testthat/test-spatial-queries.R
index b10100345d..eae2b33e33 100644
--- a/R/tests/testthat/test-spatial-queries.R
+++ b/R/tests/testthat/test-spatial-queries.R
@@ -15,7 +15,6 @@
 # specific language governing permissions and limitations
 # under the License.
 
-context("spatial queries")
 
 sc <- testthat_spark_connection()
 
diff --git a/R/tests/testthat/test-spatial-rdd-aggregation-fns.R 
b/R/tests/testthat/test-spatial-rdd-aggregation-fns.R
index 706f9da615..3fd5fd1ea0 100644
--- a/R/tests/testthat/test-spatial-rdd-aggregation-fns.R
+++ b/R/tests/testthat/test-spatial-rdd-aggregation-fns.R
@@ -15,7 +15,6 @@
 # specific language governing permissions and limitations
 # under the License.
 
-context("spatial RDD aggregation functions")
 
 sc <- testthat_spark_connection()
 pt_rdd <- read_point_rdd_with_non_spatial_attrs(repartition = 11)
diff --git a/R/tests/testthat/test-viz.R b/R/tests/testthat/test-viz.R
index 6e85785729..38703d91a6 100644
--- a/R/tests/testthat/test-viz.R
+++ b/R/tests/testthat/test-viz.R
@@ -15,7 +15,6 @@
 # specific language governing permissions and limitations
 # under the License.
 
-context("visualization")
 
 sc <- testthat_spark_connection()
 

Reply via email to