Up to [cvs.NetBSD.org] / pkgsrc / devel / R-tinytest
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
(devel/R-tinytest) Updated 1.3.1 to 1.4.1 version 1.4.1 - expect_warning and expect_message gain argument 'strict'. This toggles between failing when an exception worse than the expected one is thrown. (Thanks to Joshua Ulrich for the suggestion) - New function 'expect_length' checks length of object (thanks to Marcel Ramos for suggesting). - New function 'exit_if': conditionally exit a test file, akin to stopifnot. (Thanks to Grant McDermott for triggering this). - New function 'expect_match' to test whether string output(s) match a regular expression (Thanks to Aaron Jacobs for the suggestion). - package has no logo now, thanks to Reto Stauffer! - 'build_install_test' gains 'color' argument (thanks to Tim Taylor for suggesting) - 'run_test_file' and 'build_install_test' gain 'encoding' argument that is passed to 'parse' for reading test files (thanks to Vincent Goulet for suggesting). - exit_file() is now safeguarded against non-character argument. - Fixed reporting issue for class labels on conditions. (thanks to dherz for reporting) - Fixed bug: multiple extension packages are now possible (thanks to Vincent Arel-Bundock for the PR)
(devel/R-tinytest) Updated 1.2.2 to 1.3.1 version 1.3.1 - expect_error, _warning, _message, _stdout now accept ... arguments that are passed as extra arguments to 'grepl', when a pattern is provided (Thanks to Bart-Jan van Rossum for the GH issue). - Package now also resets locale settings after each file run, and 'report_side_effects' also tracks changes in locale settings. - Run test directories via RStudio addin. (Thanks to Matthijs Berends for PR #83) - tinytest used to implicitly depend on R >= 3.2.0 because of using 'trimws' and 'dir.exists'. (Thanks to Sebastian Meyer for figuring this out and thanks to Matthijs Berends for PR #84 solving this) - 'tinytest' objects now store the stack trace as a list of calls. When needed, the relevant part of the trace is printed, but only when printing the long form. (thanks to Jonas Kristoffer Lindeloef for suggesting) - Improved printing while running tests - Graphics produced in tests are now written to nullfile() (Thanks to Henrik Bengtsson for the suggestion). (nullfile() is defined in-package when built on R < 3.6.0). - Fixed time measurement when directory (or pkg) is tested and tests take more than an minute. - Fix: set_env variables would not be unset in all cases (Thanks to Henrik Bengtsson for the PR) - Fix in 'expect_equal': reporting in case of differing attributes (Thanks to Ott Toomet for reporting #80). - Fix in build_install_test: better reading of DESCRIPTION file (Thanks to Christof Stepper for PR #87) version 1.2.4 - 'test_package' gains 'lib.loc' argument. - New function 'expect_inherits' to check the class of an object (thanks to Sebastian Meyer for suggesting). - Printing of file exit message is now shorter and on same line as test report (thanks for Dirk Eddelbuettel for suggesting). - Duration per file is now reported, total duration is stored (thanks to Dirk Eddelbuettel for suggesting) - Small improvements in difference reporting. - Fix: avoid truncated printing in case of long diff reporting (thanks to Sebastian Meyer for the PR) - Fix: default pattern for test files was "^test_", is now "^test" as documented. (Thanks to Sebastian Meyer for the PR). - Fix: it is now easier to put tests that you do not want to install under /tests/somedir. - Internal: updated tinytest.format method to conform to new R CMD check demand. (Thanks to Brian Ripley for the warning). version 1.2.3 - Added example to using tinytest vignette on mocking databases (Thanks to Thomas Fuchs for working this out). - 'expect_stdout' now handles multi-line output. (Thanks to John Blischak for reporting). - A message is issued when a test file uses 'tinytest::expect': such tests are not registered (thanks to James Thompson for issuing a ticket on this).
(devel/R-tinytest) import R-tinytest-1.2.2 Provides a lightweight (zero-dependency) and easy to use unit testing framework. Main features: install tests with the package. Test results are treated as data that can be stored and manipulated. Test files are R scripts interspersed with test commands, that can be programmed over. Fully automated build-install-test sequence for packages. Skip tests when not run locally (e.g. on CRAN). Flexible and configurable output printing. Compare computed output with output stored with the package. Run tests in parallel. Extensible by other packages. Report side effects.