Debian Codegraph @

NEWS

raw
1 version 1.4.3
2 - tt.pr.color is now set to FALSE when the NO_COLOR environment
3 variable is set. See https://no-color.org/
4 - expect_<condition> now uses conditionMessage internally. This
5 should increase compatibility with packages defining custom
6 conditions. (thanks to Tim Taylor for suggesting and Etienne Bacher
7 for reporting)
8 - expect_match is now available when testing packages (thanks to
9 Tim Taylor for the PR and Marcel Ramos for reporting)
10 - fix in pattern matching for warnings (thanks for Matthijs Berends
11 for the PR)
12 - Fixed exit_if_not() that would always exit (thanks to Vincent
13 Arel-Bundock for reporting)
14
15 version 1.4.1
16 - expect_warning and expect_message gain argument 'strict'. This toggles
17 between failing when an exception worse than the expected one is thrown.
18 (Thanks to Joshua Ulrich for the suggestion)
19 - New function 'expect_length' checks length of object (thanks to Marcel Ramos
20 for suggesting).
21 - New function 'exit_if': conditionally exit a test file, akin to stopifnot.
22 (Thanks to Grant McDermott for triggering this).
23 - New function 'expect_match' to test whether string output(s) match a
24 regular expression (Thanks to Aaron Jacobs for the suggestion).
25 - package has no logo now, thanks to Reto Stauffer!
26 - 'build_install_test' gains 'color' argument (thanks to Tim Taylor
27 for suggesting)
28 - 'run_test_file' and 'build_install_test' gain 'encoding' argument that
29 is passed to 'parse' for reading test files (thanks to Vincent Goulet
30 for suggesting).
31 - exit_file() is now safeguarded against non-character argument.
32 - Fixed reporting issue for class labels on conditions. (thanks to dherz
33 for reporting)
34 - Fixed bug: multiple extension packages are now possible (thanks
35 to Vincent Arel-Bundock for the PR)
36
37
38 version 1.3.1
39 - expect_error, _warning, _message, _stdout now accept ... arguments
40 that are passed as extra arguments to 'grepl', when a pattern is
41 provided (Thanks to Bart-Jan van Rossum for the GH issue).
42 - Package now also resets locale settings after each file run,
43 and 'report_side_effects' also tracks changes in locale settings.
44 - Run test directories via RStudio addin. (Thanks to Matthijs Berends
45 for PR #83)
46 - tinytest used to implicitly depend on R >= 3.2.0 because of using
47 'trimws' and 'dir.exists'. (Thanks to Sebastian Meyer for figuring
48 this out and thanks to Matthijs Berends for PR #84 solving this)
49 - 'tinytest' objects now store the stack trace as a list of calls. When
50 needed, the relevant part of the trace is printed, but only when printing the
51 long form. (thanks to Jonas Kristoffer Lindeloef for suggesting)
52 - Improved printing while running tests
53 - Graphics produced in tests are now written to nullfile() (Thanks to Henrik
54 Bengtsson for the suggestion). (nullfile() is defined in-package when
55 built on R < 3.6.0).
56 - Fixed time measurement when directory (or pkg) is tested and tests take more
57 than an minute.
58 - Fix: set_env variables would not be unset in all cases (Thanks to Henrik
59 Bengtsson for the PR)
60 - Fix in 'expect_equal': reporting in case of differing attributes (Thanks to
61 Ott Toomet for reporting #80).
62 - Fix in build_install_test: better reading of DESCRIPTION file (Thanks
63 to Christof Stepper for PR #87)
64
65
66 version 1.2.4
67 - 'test_package' gains 'lib.loc' argument.
68 - New function 'expect_inherits' to check the class of an object (thanks
69 to Sebastian Meyer for suggesting).
70 - Printing of file exit message is now shorter and on same line as test
71 report (thanks for Dirk Eddelbuettel for suggesting).
72 - Duration per file is now reported, total duration is stored (thanks
73 to Dirk Eddelbuettel for suggesting)
74 - Small improvements in difference reporting.
75 - Fix: avoid truncated printing in case of long diff reporting (thanks to
76 Sebastian Meyer for the PR)
77 - Fix: default pattern for test files was "^test_", is now "^test"
78 as documented. (Thanks to Sebastian Meyer for the PR).
79 - Fix: it is now easier to put tests that you do not want to
80 install under /tests/somedir.
81 - Internal: updated tinytest.format method to conform to new
82 R CMD check demand. (Thanks to Brian Ripley for the warning).
83
84
85 version 1.2.3
86 - Added example to using tinytest vignette on mocking databases
87 (Thanks to Thomas Fuchs for working this out).
88 - 'expect_stdout' now handles multi-line output. (Thanks to John Blischak for
89 reporting).
90 - A message is issued when a test file uses 'tinytest::expect': such tests
91 are not registered (thanks to James Thompson for issuing a ticket on this).
92
93 version 1.2.2
94 - Improved diff reporting in expect_true, and expect_false.
95 - 'build_install_test' gains arguments 'lc_collate' and 'pattern', which are
96 now passed to 'run_test_dir'. (Thanks to Patrick Breheny for reporting).
97
98
99 version 1.2.1
100 - expect_message() now also detects occurrence of any message, and not
101 just the first. Detecting only the first was introduced in 1.2.0 and
102 reported at GH issue #51 (Thanks to Jozef Hajnala and Ralf Herold).
103 - Better 'diff' information for expect_warning() and expect_message().
104
105 version 1.2.0
106 - 'run_test_file' gains argument 'set_env'. Set environment variables during a
107 test run.
108 - New functions 'expect_equal_to_reference' and 'expect_equivalent_to_reference'
109 comparing/storing an object with/to an RDS file (Thanks to Jon Clayden for
110 suggesting).
111 - New function 'expect_stdout' compares output of e.g. 'print' and 'cat'
112 statements to a user-defined pattern. (Thanks to Michel Lang for suggesting).
113 - New function get_call_wd() returns working directory, active when tests were
114 invoked. (Thanks to Maja Zaloznik for the idea)
115 - Functions 'expect_error', 'expect_warning', and 'expect_message' gain 'class'
116 argument, that can be used to check whether a signaling condition inherits
117 from a certain class. (thanks to Michel Lang for suggesting)
118 - Argument 'tol' now renamed 'tolerance'. Also removed internal reliance on
119 partial argument matching (Thanks to Michel Lang).
120 - Updated documentation on how to extend tinytest with new recommendation.
121 - Using tinytest vignette gains section on testing internal functions.
122 - Breaking: function 'expect_message' no longer intercepts messages sent
123 to stdout (e.g. via 'print' or 'cat'), but only messages send as a 'message'
124 condition (Thanks to Michel Lang for pointing this out).
125 - Fix: 'test_package' would return NULL when called interactively and the package
126 contained a failing test.
127
128 version 1.1.0
129 - Tests are now run with 'pdf(file=tempfile())' as graphics device. This avoids
130 writing 'Rplots.pdf' under the library directory when R CMD check is run.
131 - Side-effects tracking now includes file operations in the test directory or
132 subdirectories thereof.
133 - build_install_test now accepts arguments 'side_effects', 'remove_side_effects'
134 - expect_* functions gain argument 'info': a user-defined message that is
135 printed in long output format.
136 - 'run_test_dir' now selects files with "^test.*\\.[rR]$", not "^test.*\\.[rR]"
137 (thanks to Dirk Eddelbuettel).
138 - Fixed 'diff' message for scalar comparisons in expect_equivalent,
139 expect_equal, expect_identical: 'target' and 'current' were switched in
140 message (thanks to GH user Billy34).
141 - 'setup_tinytest' now keeps formatting for DESCRIPTION files (thanks to
142 Bart-Jan van Rossum).
143 - Fixed crash of 'build_install_test' when pkg was developed under directory
144 with spaces (thanks to Bart-Jan van Rossum).
145 - Fixed issue where R CMD check would hang when packages use paralellization (GH #36)
146 or certain Rcpp features (GH #37). Thanks to George G Vega Yon and Dirk Eddelbuettel.
147
148
149 version 1.0.0
150 - New argument 'side_effects' for test runners: monitor side effects while running tests.
151 - New function 'report_side_effects': toggle monitoring side-effects within test files.
152 - Run test files in parallel, for example: test_package("pkg", ncpu=2). (Thanks
153 to Dirk Eddelbuettel for the suggestion).
154 - New function 'exit_file': stop running a test file with an optional message.
155 - Other packages can now extend the package, see '?register_tinytest_extension'
156 for the API (Thanks to Michel Lang for the suggestion)
157 - New function 'using' loads tinytest extension package.
158 - New function 'expect_null'
159 - Improved reporting for 'expect_true', 'expect_false'
160 - Improved reporting for expect_identical, expect_true, expect_equivalent
161 in the case of scalar values.
162 - Added second vignette with real-life examples of tinytest tests.
163 - build_install_test gains argument 'color' and 'verbose'
164 - test_package returns result visibly in interactive sessions.
165 - Fixed path issue for build_install_test on Windows (thanks to Jan Wijffels)
166
167
168 version 0.9.6
169 - Fixed error caught on CRAN
170
171 version 0.9.5
172 - New function 'expect_message'.
173 - New functions 'all_pass', 'all_fail', 'any_pass', 'any_fail' for investigating
174 'tinytests' objects.
175 - When `interactive()`, 'test_package' will not throw an error upon a failing
176 test. Still throws an error when not `interactive()`. This makes it more
177 usefull for interactive testing of installed packages.
178 - 'test_package()' now returns a 'tinytests' object.
179 - Better 'verbosity' while running test files (thanks to Dirk Eddelbuettel for
180 discussions and feedback)
181 - Added 'test_silent'. Check for lack of errors or warnings (Thanks to Bryan
182 Hanson for the suggestion, #14)
183 - Colored output is turned off automatically when the pkg is loaded
184 in a "dumb" terminal. (Thanks to Dirk Eddelbeutel for the suggestion, #12).
185 - Improved documentation, including on how to skip tests on CRAN.
186 - Improved vignette layout (thanks to Dirk Eddelbuettel's suggestions and initial
187 PR #15 for geometry settings)
188 - Improved behavior of 'setup_tinytest()' when a 'Suggests' field is
189 already present in DESCRIPTION
190 - Fix: toleracence was not passed to 'all.equal' by 'expect_equal' and
191 'expect_equivalent' (Thanks to An Chu #17)
192 - Fix 'expect_warning' and 'expect_error' would crash when run on the CLI.
193 (Thanks to Bryan Hanson #13)
194 - Fix: method dispatch in packages defining S4 methods now works.
195 - Fix: 'setup' now adds 'tinytest' to 'Suggests:' rather then adding an
196 extra 'Suggests' field in DESCRIPTION.
197 - Corrections in README and vignette, thanks to GH user 'salim-b' PR #18, #19
198 - Internal: simplified code for 'expect_warning' and 'expect_error'
199 (thanks to Lionel Henry for suggestions).
200
201 version 0.9.4
202 - New function 'setup_tinytest' that adds 'tinytest' infrastructure to a
203 package source directory.
204 - Global settings set by 'options' and 'Sys.setenv' in a test file are
205 automatically removed after running a test file. This improves independence
206 between test files. This default can be overwritten, see Chapter 3 of the
207 'Using tinytest' vignette.
208 - Test file sorting order can be controlled with 'lc_collate' option in test
209 runners or by setting options(tt.collate) globally.
210 - More control over testing packages in 'R CMD check' with extra arguments
211 to 'test_packages'.
212 - Improved call reporting in case of multiline test expressions (for example
213 when many test expressions depend on an 'if' condition).
214 - Fix in 'expect_warning' and 'expect_error'. In some circumstances evaluation
215 argument 'current' evaluated in the wrong scope, resulting in unfound variables.
216
217 version 0.9.3
218 - New function 'expect_identical'
219 - All functions of the form 'expect_lol' can now also be called as 'checkLol'
220 (similar to, but not the same as 'RUnit' syntax)
221 - Expect_* functions now have first argument 'current' and second argument 'target'
222 - Added 'summary' method for objects of class 'tinytests'
223 - Default test directory is now 'inst/tinytest'
224 - Fix: 'as.data.frame' crashed on tinytests object with all tests passing.
225
226 version 0.9.2
227 - Processed review by CRAN team member.
228 - Output coloring is now optional.
229 - Fixed issue so package works correctly with r-oldrel.
230
231 version 0.9.1
232 - Fixed a few CRAN warnings.
233
234 version 0.9.0
235 - Initial release.