pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/R-testthat



Module Name:    pkgsrc
Committed By:   mef
Date:           Mon Jan  8 07:54:46 UTC 2024

Modified Files:
        pkgsrc/devel/R-testthat: Makefile distinfo

Log Message:
(devel/R-testthat) Updated 3.1.10 to 3.2.1

- Upstream changes:

# testthat 3.2.1

* Fix incorrect format string detected by latest R-devel. Fix thanks to
  Tomas Kalibera.

* `expect_snapshot()` handles unexpected errors like errors outside of
  snapshots, i.e. they terminate the entire test and get a traceback (#1906).

* `JunitReporter()` now uses ensures numeric values are saved the xml file
  with `.` as decimal separator. (@maksymiuks, #1660)

* `local_mocked_bindings()` can now mock any object, not just functions
  (#1896).

* `skip_if_offline()` now uses `captive.apple.com` by default. This is the
  hostname that Apple devices use to check that they're online so it should
  have a higher reliability than `r-project.org` (@jdblischak, #1890).

* `test_file(desc = )` will now find `describe()` tests as well as `test_that()`
  tests (#1903).

# testthat 3.2.0

## Lifecycle changes

* `is_informative_error()` and the `wrap` argument to `test_dir()` and friends
  are now defunct.

* `expect_no_error()`, `expect_no_warning()`, `expect_no_message()`,
  `expect_no_condition()`, `local_mocked_bindings()`, and
  `with_mocked_bindings()` are now stable, not experimental.

## New features

* All packages, regardless of whether or not they use rlang 1.0.0, now
  use the new snapshot display for errors, warnings, and messages (#1856).
  This no longer shows the class name, instead focussing on a display that
  more closely mimics what you'll see interactively, including showing the
  error call.

* testthat uses an improved algorithm for finding the srcref associated with
  an expectation/error/warning/skip. It now looks for the most recent call
  that has known source and is found inside the `test_that()` call. This
  generally gives more specific locations than the previous approach and
  gives much better locations if an error occurs in an exit handler.

## Minor features and bug fixes

* Helpers are no longer run twice.

* `expect_setequal()` correctly displays results when only one of actual and
  expected is missing elements (#1835).

* `expect_snapshot()` and friends no longer create a temporary file on every
  invocation.

* `expect_snapshot_file()` now generates clickable links to review changes
  (#1821).

* `expect_snapshot_value()` has an improved error if the object can't be
  safely serialized using the specified `style` (#1771).

* `options(rlang_interactive = TRUE)` no longer causes `skip_on_cran()` to
  not run on CRAN (#1868).

* `skip_if_offline()` now errors if you don't have curl installed (#1854).

* `StopReporter` gains the ability to suppress praise when a test passes.

* `ProgressReporter` now uses is a two characters wide skip column in order
  to have a consistent width when 10 or more tests are skipped in a single file
  (@mgirlich, #1844).

* `test_file()` gains a `desc` argument which allows you to run a single
  test from a file (#1776).

- pkgsrc changes (etc):

 make test fails as follows

* checking tests ...
  Running 'test-catch.R'
  Running 'testthat.R'
 ERROR
Running the tests in 'tests/testthat.R' failed.
Last 13 lines of output:
  `expected`: "en"

  [ FAIL 2 | WARN 2 | SKIP 123 | PASS 828 ]


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 pkgsrc/devel/R-testthat/Makefile
cvs rdiff -u -r1.16 -r1.17 pkgsrc/devel/R-testthat/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/R-testthat/Makefile
diff -u pkgsrc/devel/R-testthat/Makefile:1.21 pkgsrc/devel/R-testthat/Makefile:1.22
--- pkgsrc/devel/R-testthat/Makefile:1.21       Tue Aug 15 05:50:27 2023
+++ pkgsrc/devel/R-testthat/Makefile    Mon Jan  8 07:54:45 2024
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.21 2023/08/15 05:50:27 mef Exp $
+# $NetBSD: Makefile,v 1.22 2024/01/08 07:54:45 mef Exp $
 
 R_PKGNAME=     testthat
-R_PKGVER=      3.1.10
+R_PKGVER=      3.2.1
 CATEGORIES=    devel
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -16,29 +16,34 @@ DEPENDS+=   R-magrittr>=1.5:../../devel/R-
 DEPENDS+=      R-rlang>=1.0.1:../../devel/R-rlang
 DEPENDS+=      R-withr>=2.4.3:../../devel/R-withr
 DEPENDS+=      R-praise>=1.0.0:../../misc/R-praise
-DEPENDS+=      R-digest>=0.6.20:../../security/R-digest
+DEPENDS+=      R-digest>=0.6.33:../../security/R-digest
 DEPENDS+=      R-ellipsis>=0.2.0:../../math/R-ellipsis
-DEPENDS+=      R-pkgload-[0-9]*:../../devel/R-pkgload
+DEPENDS+=      R-pkgload>=1.3.2.1:../../devel/R-pkgload
 DEPENDS+=      R-brio-[0-9]*:../../devel/R-brio
 DEPENDS+=      R-waldo>=0.4.0:../../devel/R-waldo
 DEPENDS+=      R-ps>=1.5.0:../../sysutils/R-ps
 DEPENDS+=      R-lifecycle-[0-9]*:../../devel/R-lifecycle
 DEPENDS+=      R-jsonlite-[0-9]*:../../textproc/R-jsonlite
 
-TEST_DEPENDS+= R-devtools-[0-9]*:../../devel/R-devtools
-TEST_DEPENDS+= R-rematch2-[0-9]*:../../devel/R-rematch2
-TEST_DEPENDS+= R-mockery-[0-9]*:../../devel/R-mockery
-TEST_DEPENDS+= R-diffviewer>=0.1.1:../../www/R-diffviewer
-TEST_DEPENDS+= R-callr>=3.5.1:../../devel/R-callr
-TEST_DEPENDS+= tex-inconsolata-[0-9]*:../../fonts/tex-inconsolata
-TEST_DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin
 TEST_DEPENDS+= R-brio-[0-9]*:../../devel/R-brio
+TEST_DEPENDS+= R-callr>=3.5.1:../../devel/R-callr
+TEST_DEPENDS+= R-covr-[0-9]*:../../devel/R-covr
+TEST_DEPENDS+= R-curl-[0-9]*:../../www/R-curl
 TEST_DEPENDS+= R-desc-[0-9]*:../../devel/R-desc
+TEST_DEPENDS+= R-devtools-[0-9]*:../../devel/R-devtools
+TEST_DEPENDS+= R-diffviewer>=0.1.1:../../www/R-diffviewer
+TEST_DEPENDS+= R-mockery-[0-9]*:../../devel/R-mockery
+TEST_DEPENDS+= R-knitr-[0-9]*:../../print/R-knitr
+TEST_DEPENDS+= R-processx>=3.8.2:../../sysutils/R-processx
 TEST_DEPENDS+= R-rmarkdown-[0-9]*:../../textproc/R-rmarkdown
+TEST_DEPENDS+= R-rematch2-[0-9]*:../../devel/R-rematch2
 TEST_DEPENDS+= R-shiny-[0-9]*:../../www/R-shiny
-TEST_DEPENDS+= R-processx>=3.8.2:../../sysutils/R-processx
-TEST_DEPENDS+= p5-TeXLive-TLUtils-[0-9]*:../../wip/p5-TeXLive-TLUtils
-TEST_DEPENDS+= p5-TeXLive-TLConfig-[0-9]*:../../wip/p5-TeXLive-TLConfig
+TEST_DEPENDS+= R-usethis-[0-9]*:../../devel/R-usethis
+TEST_DEPENDS+= R-xml2-[0-9]*:../../textproc/R-xml2
+#EST_DEPENDS+= p5-TeXLive-TLUtils-[0-9]*:../../print/p5-TeXLive-TLUtils
+#EST_DEPENDS+= p5-TeXLive-TLConfig-[0-9]*:../../print/p5-TeXLive-TLConfig
+TEST_DEPENDS+= tex-inconsolata-[0-9]*:../../fonts/tex-inconsolata
+TEST_DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin
 
 USE_LANGUAGES= c c++
 

Index: pkgsrc/devel/R-testthat/distinfo
diff -u pkgsrc/devel/R-testthat/distinfo:1.16 pkgsrc/devel/R-testthat/distinfo:1.17
--- pkgsrc/devel/R-testthat/distinfo:1.16       Tue Aug 15 05:50:27 2023
+++ pkgsrc/devel/R-testthat/distinfo    Mon Jan  8 07:54:45 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.16 2023/08/15 05:50:27 mef Exp $
+$NetBSD: distinfo,v 1.17 2024/01/08 07:54:45 mef Exp $
 
-BLAKE2s (R/testthat_3.1.10.tar.gz) = 612e8ee72c92a1c6b7e5923ed4dbb855cf0a68d453cd515e28ffcadb8e76b57e
-SHA512 (R/testthat_3.1.10.tar.gz) = def5e465063d3097f307db7ed8539188e6c911166bf7b22e8cfe5d52fb767332cdd18429bf34f5f4266c5e39f1cde7110b88694800b712170d1fc02ce7a9397b
-Size (R/testthat_3.1.10.tar.gz) = 737357 bytes
+BLAKE2s (R/testthat_3.2.1.tar.gz) = ae7313da0e48565aafe6afefd49303f9dc7d46f6c0fb53bbdc2ba0a58217c0ae
+SHA512 (R/testthat_3.2.1.tar.gz) = 37c3e18ef8c624f278344b6cd90a1ea8b74772fcf6e71c3ee99a858559a572a1cfc1103914dc665e0dc0586e5389eb9c89d21ba79a9916f6a7cda1d7d5ee00bf
+Size (R/testthat_3.2.1.tar.gz) = 739745 bytes



Home | Main Index | Thread Index | Old Index