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:           Sat Feb 15 06:09:01 UTC 2020

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

Log Message:
(devel/R-testthat) Updated 2.2.1 to 2.3.1

# testthat 2.3.1

* The last version of testthat introduced a performance regression in
  error assertions (#963). To fix it, you need to install rlang 0.4.2.

* Fixed error assertions with rJava errors (#964).

* Fixed issue where error and warning messages were not retrieved with
  `conditionMessage()` under certain circumstances.

# testthat 2.3.0

## Conditions

This release mostly focusses on an overhaul of how testthat works with conditions (i.e. errors, warnings and messages). There are relatively few user-facing changes, although you should now see more 
informative backtraces from errors and failures.

* Unexpected errors are now printed with a simplified backtrace.

* `expect_error()` and `expect_condition()` now display a backtrace
  when the error doesn't conform to expectations (#729).

* `expect_error()`, `expect_warning()` and `expect_message()` now call
  `conditionMessage()` to get the condition message. This generic
  makes it possible to generate messages at print-time rather than
  signal-time.

* `expect_error()` gets a better warning message when you test for a custom
  error class with `regexp`.

* New `exp_signal()` function is a condition signaller that
  implements the testthat protocol (signal with `stop()` if the
  expectation is broken, with a `continue_test` restart).

* Existence of restarts is first checked before invokation. This makes
  it possible to signal warnings or messages with a different
  condition signaller (#874).

* `ListReporter` now tracks expectations and errors, even when they occur
  outside of tests. This ensures that `stop_on_failure` matches the results
  displayed by the reporter (#936).

* You can silence warnings about untested error classes by
  implementing a method for `is_uninformative_warning()`. This method
  should be lazily registered, e.g. with `vctrs::s3_register()`. This
  is useful for introducing an experimental error class without
  encouraging users to depend on the class in their tests.

* Respect options(warn = -1) to ignore all warnings (@jeroen #958).

## Expectations

* Expectations can now be explicitly subclassed with
  `new_expectation()`. This constructor follows our new conventions
  for S3 classes and takes an optional subclass and optional
  attributes.

* Unquoted inputs no longer potentially generate multiple test messages (#929).

* `verify_output()` no longer uses quasiquotation, which fixes issues
  when verifying the output of tidy eval functions (#945).

* `verify_output()` gains a `unicode` parameter to turn on or off the
  use of Unicode characters by the cli package. It is disabled by
  default to prevent the tests from failing on platforms like Windows
  that don't support UTF-8 (which could be your contributors' or your
  CI machines).

* `verify_output()` now correctly handles multi-line condition
  messages.

* `verify_output()` now adds spacing after condition messages,
  consistent with the spacing added after normal output.

* `verify_output()` has a new syntax for inserting headers in output
  files: insert a `"# Header"` string (starting with `#` as in
  Markdown) to add a header to a set of outputs.

## Other minor improvements and bug fixes

* `compare.numeric()` uses a more sophisticated default tolerance that will
  automatically skip tests that rely on numeric tolerance if long doubles are
  not available (#940).

* `JunitReporter` now reports tests in ISO 8601 in the UTC timezone and
  uses the maximum precision of 3 decimal places (#923).


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/R-testthat/Makefile
cvs rdiff -u -r1.1 -r1.2 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.2 pkgsrc/devel/R-testthat/Makefile:1.3
--- pkgsrc/devel/R-testthat/Makefile:1.2        Wed Sep 25 17:21:08 2019
+++ pkgsrc/devel/R-testthat/Makefile    Sat Feb 15 06:09:00 2020
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2019/09/25 17:21:08 brook Exp $
+# $NetBSD: Makefile,v 1.3 2020/02/15 06:09:00 mef Exp $
 
 R_PKGNAME=     testthat
-R_PKGVER=      2.2.1
+R_PKGVER=      2.3.1
 CATEGORIES=    devel
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -13,7 +13,7 @@ DEPENDS+=     R-cli>=1.1.0:../../devel/R-cli
 DEPENDS+=      R-crayon>=1.3.4:../../devel/R-crayon
 DEPENDS+=      R-evaluate>=0.14:../../devel/R-evaluate
 DEPENDS+=      R-magrittr>=1.5:../../devel/R-magrittr
-DEPENDS+=      R-rlang>=0.3.0:../../devel/R-rlang
+DEPENDS+=      R-rlang>=0.4.1:../../devel/R-rlang
 DEPENDS+=      R-withr>=2.0.0:../../devel/R-withr
 DEPENDS+=      R-praise>=1.0.0:../../misc/R-praise
 DEPENDS+=      R-digest>=0.6.20:../../security/R-digest

Index: pkgsrc/devel/R-testthat/distinfo
diff -u pkgsrc/devel/R-testthat/distinfo:1.1 pkgsrc/devel/R-testthat/distinfo:1.2
--- pkgsrc/devel/R-testthat/distinfo:1.1        Fri Aug  9 18:39:07 2019
+++ pkgsrc/devel/R-testthat/distinfo    Sat Feb 15 06:09:00 2020
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1 2019/08/09 18:39:07 brook Exp $
+$NetBSD: distinfo,v 1.2 2020/02/15 06:09:00 mef Exp $
 
-SHA1 (R/testthat_2.2.1.tar.gz) = b15f814ea9a5a57192232649d73ef9bb6544d442
-RMD160 (R/testthat_2.2.1.tar.gz) = 6e7879813155c5ae557869a568726c74c945b3ce
-SHA512 (R/testthat_2.2.1.tar.gz) = 0d3a4f5b21907b83f8ed56e8b9b54cf16061fa6b102f9b559956f554a2894d704a4d35e44fa7c7b194817750656e2f1a2e909fb4111a2fa68a6324cc271589e4
-Size (R/testthat_2.2.1.tar.gz) = 235874 bytes
+SHA1 (R/testthat_2.3.1.tar.gz) = 2d9e8ba3a0455e9d17853e02d14ac1b884a00069
+RMD160 (R/testthat_2.3.1.tar.gz) = 937d127b4066f2735e9a96d4bf588930ce214a24
+SHA512 (R/testthat_2.3.1.tar.gz) = e47df4cacad0c5267c1992cd045c55ab03998750aeb110affca2b62fb301444e397666004f4f67dfa6ce21e56dc7f8fef2a76e3e4354518c3986c27e1219c656
+Size (R/testthat_2.3.1.tar.gz) = 247984 bytes



Home | Main Index | Thread Index | Old Index