Upgrade to Test::Simple 0.64_03
[p5sagit/p5-mst-13.2.git] / lib / Test / Simple / Changes
CommitLineData
004caa16 10.64_03 Sun Nov 5 13:09:55 EST 2006
2 - Tests will no longer warn when run against an alpha version of
3 Test::Harness [rt.cpan.org #20501]
4 - Now testing our POD and POD coverage.
5 - Added a LICENSE field.
6 - Removed warning from the docs about mixing numbered and unnumbered
7 tests. There's nothing wrong with that. [rt.cpan.org 21358]
8 - Change doc examples to talk about $got and $expected rather than
9 $this and $that to correspond better to the diagnostic output
10 [rt.cpan.org 2655]
11
b7f9bbeb 120.64_02 Sat Sep 9 12:16:56 EDT 2006
13 - Last release broke Perls earlier than 5.8.
14
150.64_01 Mon Sep 4 04:40:42 EDT 2006
16 - Small improvement to the docs to avoid user confusion over
17 "use Test::More tests => $num_tests" (Thanks Eric Wilhelm)
18 - Minor fix for a test failure in is_deeply_fail for some Windows
19 users. Not a real bug. [rt.cpan.org 21310]
20 - _print_diag() accidentally leaked into the public documentation.
21 It is a private method.
004caa16 22 * Added Test::Builder->carp() and croak()
b7f9bbeb 23 * Made most of the error messages report in the caller's context.
24 [rt.cpan.org #20639]
25 * Made the failure diagnostic message file and line reporting portion
26 match Perl's for easier integration with Perl aware editors.
27 (so its "at $file line $line_num." now)
28 [rt.cpan.org #20639]
29 * 5.8.0 threads are no longer supported. There's too many bugs.
30
1be77ff7 310.64 Sun Jul 16 02:47:29 PDT 2006
32 * 0.63's change to test_fail() broke backwards compatibility. They
33 have been removed for the time being. test_pass() went with it.
34 This is [rt.cpan.org 11317] and [rt.cpan.org 11319].
35 - skip() will now warn if you get the args backwards.
36
68938d83 370.63 Sun Jul 9 02:36:36 PDT 2006
38 * Fixed can_ok() to gracefully handle no class name.
39 Submitted by "Pete Krawczyk" <perl@bsod.net>
40 Implemented by "Richard Foley" <richard.foley@rfi.net>
41 [rt.cpan.org 15654]
42 * Added test_pass() to Test::Builder::Tester rather than having to
43 call test_out("ok 1 - foo"). <chromatic@wgz.org> [rt.cpan.org 11317]
44 * test_fail() now accepts a test diagnostic rather than having to
45 call test_out() separately. <chromatic@wgz.org> [rt.cpan.org 11319]
46 - Changed Test::Builder::Tester docs to show best practice using
47 test_fail() and test_pass().
48 - isnt_num() doc example wrongly showed is_num(). <chromatic@wgz.org>
49 - Fixed a minor typo in the BAIL_OUT() docs. <Jeff Deifik>
50 - Removed the LICENSE field from the Makefile.PL as the release of
51 MakeMaker with that feature has been delayed.
52
845d7e37 530.62 Sat Oct 8 01:25:03 PDT 2005
68938d83 54 * Absorbed Test::Builder::Tester. The last release broke it because its
845d7e37 55 screen scraping Test::More and the failure output changed. By
56 distributing them together we ensure TBT won't break again.
57 * Test::Builder->BAILOUT() was missing.
58 - is_deeply() can now handle function and code refs in a very limited
59 way. It simply looks to see if they have the same referent.
60 [rt.cpan.org 14746]
61
b1ddf169 620.61 Fri Sep 23 23:26:05 PDT 2005
63 - create.t was trying to read from a file before it had been closed
64 (and thus the changes may not have yet been written).
65 * is_deeply() would call stringification methods on non-object strings
66 which happened to be the name of a string overloaded class.
67 [rt.cpan.org 14675]
68
690.60_02 Tue Aug 9 00:27:41 PDT 2005
70 * Added Test::Builder::Module.
71 - Changed Test::More and Test::Simple to use Test::Builder::Module
72 - Minor Win32 testing nit in fail-more.t
73 * Added no_diag() method to Test::Builder and changed Test::More's
74 no_diag internals to use that. [rt.cpan.org 8655]
75 * Deprecated no_diag() as an option to "use Test::More". Call the
76 Test::Builder method instead.
77
780.60_01 Sun Jul 3 18:11:58 PDT 2005
79 - Moved the docs around a little to better group all the testing
80 functions together. [rt.cpan.org 8388]
81 * Added a BAIL_OUT() function to Test::More [rt.cpan.org 8381]
82 - Changed Test::Builder->BAILOUT to BAIL_OUT to match other method's
83 naming conventions. BAILOUT remains but is deprecated.
84 * Changed the standard failure diagnostics to include the test name.
85 [rt.cpan.org 12490]
86 - is_deeply() was broken for overloaded objects in the top level in
87 0.59_01. [rt.cpan.org 13506]
88 - String overloaded objects without an 'eq' or '==' method are now
89 handled in cmp_ok() and is().
90 - cmp_ok() will now treat overloaded objects as numbers if the comparison
91 operator is numeric. [rt.cpan.org 13156]
92 - cmp_ok(), like() and unlike will now throw uninit warnings if their
93 arguments are undefined. [rt.cpan.org 13155]
94 - cmp_ok() will now throw warnings as if the comparison were run
95 normally, for example cmp_ok(2, '==', 'foo') will warn about 'foo'
96 not being numeric. Previously all warnings in the comparison were
97 supressed. [rt.cpan.org 13155]
98 - Tests will now report *both* the number of tests failed and if the
99 wrong number of tests were run. Previously if tests failed and the
100 wrong number were run it would only report the latter.
101 [rt.cpan.org 13494]
102 - Missing or extra tests are not considered failures for the purposes
103 of calculating the exit code. Should there be no failures but the
104 wrong number of tests the exit code will be 254.
105 - Avoiding an unbalanced sort in eq_set() [bugs.perl.org 36354]
106 - Documenting that eq_set() doesn't deal well with refs.
107 - Clarified how is_deeply() compares a bit.
108 * Once again working on 5.4.5.
109
5143c659 1100.60 Tue May 3 14:20:34 PDT 2005
111
1120.59_01 Tue Apr 26 21:51:12 PDT 2005
113 * Test::Builder now has a create() method which allows you to create
114 a brand spanking new Test::Builder object.
115 * require_ok() was not working for single letter module names.
116 * is_deeply() and eq_* now work with circular scalar references
117 (Thanks Fergal)
118 * Use of eq_* now officially discouraged.
119 - Removed eq_* from the SYNOPSIS.
120 - is_deeply(undef, $not_undef); now works. [rt.cpan.org 9441]
121 - is_deeply() was mistakenly interpeting the same reference used twice
122 in a data structure as being circular causing failures.
123 [rt.cpan.org 11623]
124 - Loading Test::Builder but not using it would interfere with the
125 exit code if the code exited. [rt.cpan.org 12310]
126 - is_deeply() diagnostics now disambiguate between stringified references
127 and references. [rt.cpan.org 8865]
128 - Files opened by the output methods are now autoflushed.
129 - todo() now honors $Level when looking for $TODO.
130
0257f296 1310.54 Wed Dec 15 04:18:43 EST 2004
132 * $how_many is optional for skip() and todo_skip(). Thanks to
133 Devel::Cover for pointing this out.
134 - Removed a user defined function called err() in the tests to placate
135 users of older versions of the dor patch before err() was weakend.
136 [rt.cpan.org 8734]
137
1380.53_01 Sat Dec 11 19:02:18 EST 2004
139 - current_test() can now be set backward.
140 - *output() methods now handle tied handles and *FOO{IO} properly.
141 - maybe_regex() now handles undef gracefully.
142 - maybe_regex() now handles 'm,foo,' style regexes.
143 - sort_bug.t wasn't checking for threads properly. Would fail on
144 5.6 that had ithreads compiled in. [rt.cpan.org 8765]
145
7483b81c 1460.53 Mon Nov 29 04:43:24 EST 2004
147 - Apparently its possible to have Module::Signature installed without
148 it being functional. Fixed the signature test to account for this.
149 (not a real bug)
150
1510.52 Sun Nov 28 21:41:03 EST 2004
152 - plan() now better checks that the given plan is valid.
153 [rt.cpan.org 2597]
154
1550.51_02 Sat Nov 27 01:25:25 EST 2004
156 * is_deeply() and all the eq_* functions now handle circular data
157 structures. [rt.cpan.org 7289]
158 * require_ok() now handles filepaths in addition to modules.
159 - Clarifying Test::More's position on overloaded objects
160 - Fixed a bug introduced in 0.51_01 causing is_deeply() to pierce
161 overloaded objects.
162 - Mentioning rt.cpan.org for reporting bugs.
163
1640.51_01 Fri Nov 26 02:59:30 EST 2004
165 - plan() was accidentally exporting functions [rt.cpan.org 8385]
166 * diag @msgs would insert # between arguments. [rt.cpan.org 8392]
167 * eq_set() could cause problems under threads due to a weird sort bug
168 [rt.cpan.org 6782]
169 * undef no longer equals '' in is_deeply() [rt.cpan.org 6837]
170 * is_deeply() would sometimes compare references as strings.
171 [rt.cpan.org 7031]
172 - eq_array() and eq_hash() could hold onto references if they failed
173 keeping them in memory and preventing DESTROY. [rt.cpan.org 7032]
174 * is_deeply() could confuse [] with a non-existing value
175 [rt.cpan.org 7030]
176 - is_deeply() diagnostics a little off when scalar refs were inside
177 an array or hash ref [rt.cpan.org 7033]
178 - Thanks to Fergal Daly for ferretting out all these long standing
179 is_deeply and eq_* bugs.
180
1810.51 Tue Nov 23 04:51:12 EST 2004
182 - Fixed bug in fail_one.t on Windows (not a real bug).
183 - TODO reasons as overloaded objects now won't blow up under threads.
184 [Autrijus Tang]
185 - skip() in 0.50 tickled yet another bug in threads::shared. Hacked
186 around it.
187
30e302f8 1880.50 Sat Nov 20 00:28:44 EST 2004
7483b81c 189 - Fixed bug in fail-more test on Windows (not a real bug).
30e302f8 190 [rt.cpan.org 8022]
7483b81c 191 - Change from CVS to SVK. Hopefully this is the last time I move
192 version control systems.
30e302f8 193 - Again removing File::Spec dependency (came back in 0.48_02)
194 - Change from Aegis back to CVS
195
1960.49 Thu Oct 14 21:58:50 EDT 2004
197 - t/harness_active.t would fail for frivolous reasons with older
198 MakeMakers (test bug) [thanks Bill Moseley for noticing]
199
2000.48_02 Mon Jul 19 02:07:23 EDT 2004
201 * Overloaded objects as names now won't blow up under threads
202 [rt.cpan.org 4218 and 4232]
203 * Overloaded objects which stringify to undef used as test names
204 now won't cause internal uninit warnings. [rt.cpan.org 4232]
205 * Failure diagnostics now come out on their own line when run in
206 Test::Harness.
207 - eq_set() sometimes wasn't giving the right results if nested refs
208 were involved [rt.cpan.org 3747]
209 - isnt() giving wrong diagnostics and warning if given any undefs.
210 * Give unlike() the right prototype [rt.cpan.org 4944]
211 - Change from CVS to Aegis
212 - is_deeply() will now do some basic argument checks to guard against
213 accidentally passing in a whole array instead of its reference.
214 - Mentioning Test::Differences, Test::Deep and Bundle::Test.
215 - Removed dependency on File::Spec.
216 - Fixing the grammar of diagnostic outputs when only a single test
217 is run or failed (ie. "Looks like you failed 1 tests").
218 [Darren Chamberlain]
219
2200.48_01 Mon Nov 11 02:36:43 EST 2002
221 - Mention Test::Class in Test::More's SEE ALSO
222 * use_ok() now DWIM for version checks
223 - More problems with ithreads fixed.
224 * Test::Harness upgrade no longer optional. It was causing too
225 many problems when the T::H upgrade didn't work.
226 * Drew Taylor added a 'no_diag' option to Test::More to switch
227 off all diag() statements.
228 * Test::Builder/More no longer automatically loads threads.pm
229 when threads are enabled. The user must now do this manually.
230 * Alex Francis added reset() reset the state of Test::Builder in
231 persistent environments.
232 - David Hand noted that Test::Builder/More exit code behavior was
233 not documented. Only Test::Simple.
11ea77c5 234
60ffb308 2350.47 Mon Aug 26 03:54:22 PDT 2002
236 * Tatsuhiko Miyagawa noticed Test::Builder was accidentally storing
237 objects passed into test functions causing problems with tests
238 relying on object destruction.
239 - Added example of calculating the number of tests to Test::Tutorial
240 - Peter Scott made the ending logic not fire on child processes when
241 forking.
242 * Test::Builder is once again ithread safe.
243
2440.46 Sat Jul 20 19:57:40 EDT 2002
245 - Noted eq_set() isn't really a set comparision.
246 - Test fix, exit codes are broken on MacPerl (bleadperl@16868)
247 - Make Test::Simple install itself into the core for >= 5.8
248 - Small fixes to Test::Tutorial and skip examples
249 * Added TB->has_plan() from Adrian Howard
250 - Clarified the meaning of 'actual_ok' from TB->details
251 * Added TB->details() from chromatic
252 - Neil Watkiss fixed a pre-5.8 test glitch with threads.t
253 * If the test died before a plan, it would exit with 0 [ID 20020716.013]
254
a344be10 2550.45 Wed Jun 19 18:41:12 EDT 2002
256 - Andy Lester made the SKIP & TODO docs a bit clearer.
257 - Explicitly disallowing double plans. (RT #553)
258 - Kicking up the minimum version of Test::Harness to one that's
259 fairly bug free.
260 - Made clear a common problem with use_ok and BEGIN blocks.
261 - Arthur Bergman made Test::Builder thread-safe.
262
89c1e84a 2630.44 Thu Apr 25 00:27:27 EDT 2002
264 - names containing newlines no longer produce confusing output
265 (from chromatic)
266 - chromatic provided a fix so can_ok() honors can() overrides.
267 - Nick Ing-Simmons suggested todo_skip() be a bit clearer about
268 the skipping part.
269 - Making plan() vomit if it gets something it doesn't understand.
270 - Tatsuhiko Miyagawa fixed use_ok() with pragmata on older perls.
271 - quieting diag(undef)
272
2730.43 Thu Apr 11 22:55:23 EDT 2002
274 - Adrian Howard added TB->maybe_regex()
275 - Adding Mark Fowler's suggestion to make diag() return
276 false.
277 - TB->current_test() still not working when no tests were run via
278 TB itself. Fixed by Dave Rolsky.
279
6686786d 2800.42 Wed Mar 6 15:00:24 EST 2002
281 - Setting Test::Builder->current_test() now works (see what happens
282 when you forget to test things?)
283 - The change in is()'s undef/'' handling in 0.34 was an API change,
284 but I forgot to declare it as such.
285 - The apostrophilic jihad attacks! Philip Newtons patch for
286 grammar mistakes in the doc's.
287
a9153838 2880.41 Mon Dec 17 22:45:20 EST 2001
289 * chromatic added diag()
290 - Internal eval()'s sometimes interfering with $@ and $!. Fixed.
291
2920.40 Fri Dec 14 15:41:39 EST 2001
293 * isa_ok() now accepts unblessed references gracefully
294 - Nick Clark found a bug with like() and a regex with % in it.
295 - exit.t was hanging on 5.005_03 VMS perl. Test now skipped.
296 - can_ok() would pass if no methods were given. Now fails.
297 - isnt() diagnostic output format changed
298 * Added some docs about embedding and extending Test::More
299 * Added Test::More->builder
300 * Added cmp_ok()
301 * Added todo_skip()
302 * Added unlike()
303 - Piers pointed out that sometimes people override isa().
304 isa_ok() now accounts for that.
305
3060.36 Thu Nov 29 14:07:39 EST 2001
307 - Matthias Urlichs found that intermixed prints to STDOUT and test
308 output came out in the wrong order when piped.
309
3100.35 Tue Nov 27 19:57:03 EST 2001
311 - Little glitch in the test suite. No actual bug.
312
3130.34 Tue Nov 27 15:43:56 EST 2001
6686786d 314 * **API CHANGE** Empty string no longer matches undef in is()
315 and isnt().
a9153838 316 * Added isnt_eq and isnt_num to Test::Builder.
317
4bd4e70a 3180.33 Mon Oct 22 21:05:47 EDT 2001
319 * It's now officially safe to redirect STDOUT and STDERR without
320 affecting test output.
321 - License and POD cleanup by Autrijus Tang
322 - Synched up Test::Tutorial with the wiki version
323 - Minor VMS test nit.
324
33459055 3250.32 Tue Oct 16 16:52:02 EDT 2001
326 * Finally added a seperate plan() function
327 * Adding a name field to isa_ok()
328 (Requested by Dave Rolsky)
329 - Test::More was using Carp.pm, causing the occasional false positive.
330 (Reported by Tatsuhiko Miyagawa)
331
3320.31 Mon Oct 8 19:24:53 EDT 2001
333 * Added an import option to Test::More
334 * Added no_ending and no_header options to Test::Builder
335 (Thanks to Dave Rolsky for giving this a swift kick in the ass)
336 * Added is_deeply(). Display of scalar refs not quite 100%
337 (Thanks to Stas Bekman for Apache::TestUtil idea thievery)
338 - Fixed a minor warning with skip()
339 (Thanks to Wolfgang Weisselberg for finding this one)
340
3410.30 Thu Sep 27 22:10:04 EDT 2001
342 * Added Test::Builder
4bd4e70a 343 (Thanks muchly to chromatic for getting this off the ground!)
33459055 344 * Diagnostics are back to using STDERR *unless* it's from a todo
345 test. Those go to STDOUT.
346 - Fixed it so nothing is printed if a test is run with a -c flag.
347 Handy when a test is being deparsed with B::Deparse.
348
3490.20 *UNRELEASED*
350
0cd946aa 3510.19 Tue Sep 18 17:48:32 EDT 2001
352 * Test::Simple and Test::More no longer print their diagnostics
353 to STDERR. It instead goes to STDOUT.
354 * TODO tests which fail now print full failure diagnostics.
355 - Minor bug in ok()'s test name diagnostics made it think a blank
356 name was a number.
357 - ok() less draconian about test names
358 - Added temporary special case for Parrot::Test
359 - Now requiring File::Spec for our tests.
360
d020a79a 3610.18 Wed Sep 5 20:35:24 EDT 2001
362 * ***API CHANGE*** can_ok() only counts as one test
363 - can_ok() has better diagnostics
364 - Minor POD fixes from mjd
365 - adjusting the internal layout to make it easier to put it into
366 the core
367
3680.17 Wed Aug 29 20:16:28 EDT 2001
369 * Added can_ok() and isa_ok() to Test::More
370
3710.16 Tue Aug 28 19:52:11 EDT 2001
372 * vmsperl foiled my sensisble exit codes. Reverting to a much more
373 coarse scheme.
374
3750.15 Tue Aug 28 06:18:35 EDT 2001 *UNRELEASED*
376 * Now using sensible exit codes on VMS.
377
3780.14 Wed Aug 22 17:26:28 EDT 2001
379 * Added a first cut at Test::Tutorial
380
3810.13 Tue Aug 14 15:30:10 EDT 2001
382 * Added a reason to the skip_all interface
383 - Fixed a bug to allow 'use Test::More;' to work.
384 (Thanks to Tatsuhiko Miyagawa again)
385 - Now always testing backwards compatibility.
386
3870.12 Tue Aug 14 11:02:39 EDT 2001
388 * Fixed some compatibility bugs with older Perls
389 (Thanks to Tatsuhiko Miyagawa)
390
3910.11 Sat Aug 11 23:05:19 EDT 2001
392 * Will no longer warn about testing undef values
393 - Escaping # in test names
394 - Ensuring that ok() returns true or false and not undef
395 - Minor doc typo in the example
396
3970.10 Tue Jul 31 15:01:11 EDT 2001
398 * Test::More is now distributed in this tarball.
399 * skip and todo tests work!
400 * Extended use_ok() so it can import
401 - A little internal rejiggering
402 - Added a TODO file
403
11ea77c5 4040.09 Wed Jun 27 02:55:54 EDT 2001
405 - VMS fixes
406
4070.08 Fri Jun 15 14:39:50 EDT 2001
408 - Guarding against $/ and -l
409 - Reformatted the way failed tests are reported to make them stand out
410 a bit better.
411
4120.07 Tue Jun 12 15:55:54 BST 2001
413 - 'use Test::Simple' by itself no longer causes death
414 - Yet more fixes for death in eval
415 - Limiting max failures reported via exit code to 254.
416
4170.06 Wed May 9 23:38:17 BST 2001
418 - Whoops, left a private method in the public docs.
419
4200.05 Wed May 9 20:40:35 BST 2001
421 - Forgot to include the exit tests.
422 - Trouble with exiting properly under 5.005_03 and 5.6.1 fixed
423 - Turned off buffering
424 * 5.004 new minimum version
425 - Now explicitly tested with 5.6.1, 5.6.0, 5.005_03 and 5.004
426
4270.04 Mon Apr 2 11:05:01 BST 2001
428 - Fixed "require Test::Simple" so it doesn't bitch and exit 255
429 - Now installable with the CPAN shell.
430
4310.03 Fri Mar 30 08:08:33 BST 2001
432 - ok() now prints on what line and file it failed.
433 - eval 'die' was considered abnormal. Fixed.
434
4350.02 Fri Mar 30 05:12:14 BST 2001 *UNRELEASED*
436 - exit codes tested
437 * exit code on abnormal exit changed to 255 (thanks to Tim Bunce for
438 pointing out that Unix can't do negative exit codes)
439 - abnormal exits now better caught.
440 - No longer using Test.pm to test this, but still minimum of 5.005
441 due to needing $^S.
442
4430.01 Wed Mar 28 06:44:44 BST 2001
444 - First working version released to CPAN
445