forked from Test-More/test-more
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Changes
1180 lines (960 loc) · 46 KB
/
Changes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
See README and version control log for Test::Builder2 changes.
1.005000_006 Fri Apr 12 18:01:09 BST 2013
New Features
* Memory usage will not grow as more tests are run.
* Added TB2::History->last_result and last_event to retrieve the
last result and event seen.
* Clarify who to contact when getting a WHOA! [github 324]
(Noirin Plunkett)
* TB2::Formatter::SimpleHTML now shows the file and line.
(Michael G Schwern)
* Add TB2::History->literal_pass_count and literal_fail_count to
record results with literal_pass and literal_fail.
(Michael G Schwern)
* Add TB2::History->last_result and last_event to record the
last seen event and result. (Michael G Schwern)
Bug Fixes
* Patched TB2::Mouse to not blow over tied $_ (a local $_ bug).
(Father Chrysostomos) [github 293]
* Test::Builder::Tester will now set a plan in test tests emulating
an undocumented 0.x feature that some tests accidentally rely on.
[github 327] [github 328]
* Test::Builder::Tester will now turn off the ending stuff to
emulate an undocumented 0.x feature that some tests accidentally
rely on. [github #276]
* Fix TB2::Formatter::PlusMinus and TB2::Formatter::POSIX. They
suffered bit rot.
* Conditionally call special methods on Formatters so things don't
blow up on non-TAP formatters. (Michael G Schwern)
* Fix test_fail called via a do statement. [github #349] (nnutter)
* Fix TB2_FORMATTER_CLASS with taint mode tests. [github #357]
(Michael G Schwern)
Doc Fixes
* Typo and POD formatting fixes. [github #318] [github #320] [github #355]
(Ben Bullock, pdl, [email protected])
* Add a COMPATIBILITY section to the Test::More docs. [github #344]
(pdl, Michael G Schwern)
* Fix UTF-8 encoding errors in the docs. [github #348] (Michael G Schwern)
Misc
* Update the resources meta data to point at the correct repository, issues
mailing list and home page.
* Test::Builder::Tester is now discouraged. Use Test::Tester or TB2::Tester
instead.
Incompatible Changes
* The result of each test is no longer stored by default. This keeps
the test framework from consuming more and more memory as tests are
run. Test::Builder->details and Test::Builder->summary will throw
exceptions by default. For most needs, they are replaced with
statistical methods in TB2::History. [github 198]
Feature Changes
* 'use Test::More no_plan => 1' no longer warns. This allows us
to simplify the import argument handling, everything is a hash
now (or can be converted into one). (Michael G Schwern)
Test Fixes
* Fix tests for Carp 1.25 [github 321] (Michael G Schwern)
1.005000_005 Thu Apr 26 15:23:25 PDT 2012
New Features
* cmp_ok() will error when used with something which is not a
comparison operator, including =, += and the like.
[github 141]
Bug Fixes
* Using a reference as a test name works again. [github #264]
* Protected against Test::More accidentally overwriting $!
[github #268] [github #266]
* Restored the behavior of a fork, it will not issue its own
plan, making testing with fork easier.
* Test::Builder->name() has been restored. [github #220]
(Matthew Horsfall)
* TB2::BlackHole no longer tries to AUTOLOAD its destructor.
[github #280] (Peter Rabbitson)
* Threads work on 5.12 and 5.10 again. (Peter Rabbitson)
Doc Fixes
* use_ok() has been discouraged and de-emphasized as a general
replacement for `use` in tests. [github #288]
Incompatible Changes with previous alphas
* TB2::Counter has been removed [github 119]
* The test counter has been moved from the TAP formatter
into TB2::History [github 190]
* TB2::TestState is no longer a complete subclass of
TB2::EventCoordinator, but delegates most EC methods. The isa/can
trickery caused threading issues. [github 291]
* TB2::TestState->current_coordinator is now TB2::TestState->ec.
* use_ok() will no longer apply lexical pragams. The incompatibilities
and extra complexity is not worth the marginal use.
[github #287]
1.005000_004 Sun Mar 25 15:01:49 BST 2012
Bug Fixes
* Fix the thread crashes occurring with 5.12 and down.
[github 261]
Test Fixes
* t/History/child_process.t was failing, the forked processes were
improperly coordinated.
Incompatible Changes with previous alphas
* coordinate_threads() has been removed. It had no use case and was
complicating threads which are quite complicated enough thank you.
1.005000_003 Thu Mar 22 17:48:08 GMT 2012
Distribution Changes
* Added an explicit license file and copies of the GPL1 and Artistic
License.
* Changed the URL pointing to the Perl license to use the dev.perl.org
one pointing at the Perl license, not just the Artistic.
New Features
* The default formatter can be changed several ways.
use Some::Test formatter => "Some::Other::Formatter";
$builder->set_formatter( $other_formatter );
TB2_FORMATTER_CLASS environment variable
[github 244] [github 243]
* A new formatter, TB2::Formatter::TAP::TB1, emulates all the
quirks of Test::Builder 0.98. [github 215]
* Test::Builder::Tester now uses TB2::Formatter::TAP::TB1
so tests written with TBT remain compatible. TBT is
discouraged, use Test::Tester.
[github 242]
* Everything responds to object_id() now. [github 162]
Bug Fixes
* subtest() once again returns the Result of the subtest.
[github 250]
* Remove unnecessary uses of local $_ in Test::Builder::Tester.
Father Chrysostomos says it interferes with a caller's tied $_.
[rt.cpan.org 73543]
* Quiet a warning about $TODO when a test function is called at
BEGIN time and outside the package into which Test::More was
exported. [github 253]
* Quiet warnings in the TAP formatter when a result name is
undefined. [github 260]
Incompatible changes with previous alphas
* TB2::NoHistory has been deleted before somebody relies on it.
It was unmaintained and will be replaced by a TB2::History feature.
See github 198. [github 241]
* Events no longer have an event_id method, it's all object_id.
[github 162]
Documentation Changes
* $this has been replaced with $thing to avoid Javascript or C++
folks being confused. (Karen Etheridge)
1.005000_002 Mon Nov 28 21:16:13 PST 2011
This release is now 100% feature complete and supports all documented
features of Test::Builder 0.98. From this point forward it's bug
fixing.
New Features
* Test::Builder->in_subtest() will tell you if you're currently in
a subtest. (dunsmoreb) [github/229]
Bug Fixes
* Thread support is now 100% operational.
* use_ok() in 1.005000_001 was leaking pragmas from inside Test::More.
This looked like Test::More was forcing strict. [rt.cpan.org 67538]
(same as 0.98_02) (Father Chrysostomos)
* subtest(), child(), name() and parent() are now completely removed,
no stubs, so that a can() check will not find them. This fixes
some modules. (dunsmoreb) [github/229]
Doc Fixes
* References to "stream" have all been turned to "test" to be
consistent with the new terminology. [github issue/211]
Performance Improvements
* Runtime performance of a basic test has been significantly improved.
Some Known Broken Dependencies
* POE
* Test::Tester (and anything based on it)
* Test::NoWarnings (because of Test::Tester)
* Test::Deep (because of Test::Tester)
* Test::Class
* Test::SharedFork
* Test::Aggregate
1.005000_001 Thu Nov 17 01:38:53 PST 2011
This is the first alpha release of what has been termed Test::Builder1.5.
It is Test::Builder implemented with the Test::Builder2 internals
(formatters, event system, etc...). Aside from thread support, it is
feature complete and supports all existing features of Test::Builder,
Test::Simple and Test::More.
Tests should continue to work as written. Please report any breakages
at https://github.com/schwern/test-more/issues/
Incompatible Changes with previous alphas
* A lot, too many to list. If you were using an earlier alpha,
all bets are off.
Incompatible Changes (since 0.98)
* The test output format has changed in small ways. A later release
will provide the means to format the output just like 0.98 does now.
2.00_07 Mon, 28 Feb 2011 23:53:22 +1100
Incompatible Changes with previous alphas
* TB2::Event::Log now uses symbolic levels, not numeric. This lets us
add new levels later. [github 111]
* Event log levels have been lower cased.
* The emergency and critical log levels have been removed. They didn't have
a use case.
* TB2::Event::Log->levels now returns in order from lowest to highest.
New Features
* Added TB2::Event::Log->between_levels() to compare log levels.
* The TAP formatter now respects log events.
* Test::Builder->diag and ->note now use log events and the
formatter.
Documentation
* The suggested meanings of event log levels are now documented.
Bug Fixes
* Fixed a skip() or todo_skip() called before a plan. [github 132]
2.00_06 Thu, 27 Jan 2011 09:58:35 +1000
Incompatible Changes with previous alphas
* The EventCoordinator now only has one history object.
histories() is now history(). clear_history() and add_histories()
are gone. [github 115]
* Subtest handling has been removed from the TAP formatter. The design
was wrong. It will come back later in a better form [github 120]
* Test::Builder2::Counter, History and Formatter are no longer singletons.
This is unnecessary, use the objects provided by your EventCoordinator.
[github 117]
* stream_depth() is now a method on the History object, not the TAP
formatter. This makes it available to all event watchers. [github 118]
* history is now posted events before the formatter. This lets the
formatter ask the history object about the test state.
* INNER_accept_event and INNER_accept_result are now gone from the
Formatter. Write accept_event and accept_result normally.
* TB2->ok will now start the stream if there is not one already
New Features
* Added Test::Builder2::CanLoad to protect $! and $@ from tests loading
modules internally.
* Added Test::Builder2::Tester to test Test:: modules independent of
their format. [github 112]
* Added Test::Builder2::History->plan to capture the plan event so
builders don't have to
* Test::Builder no longer tracks the plan on its own, it uses the
shared History object. [github 125]
Bug Fixes
* More $@ and $! protection.
* Test::Builder now works with non-TAP formatters (or no formatter at all)
2.00_05 Mon, 24 Jan 2011 14:52:27 +1000
Bug Fix
* reset() was not grabbing a fresh copy of STDOUT and STDERR
Test Fix
* Fixed t/Builder/fork_with_new_stdout.t on Windows.
2.00_04 Tue Jan 18 11:50:48 EST 2011
Test Fix
* Work around a qr// bug in Debian etch's perl in t/Builder2/NoWarnings.t
* Tests looking for Mouse can now correctly find it.
New Features
* Added a Log event (nothing using it yet)
* Added a Comment event (nothing using it yet)
Bug Fixes
* Upgraded Mouse to 0.87
* Fixed the SimpleHTML example
* TB2::Streamer::TAP->error_fh could get accidentally initialized
to undef.
2.00_03 Mon Jan 10 09:38:22 EST 2011
Test Fix
* Casing mistake in t/CanDupFilehandles.t
2.00_02 Sun Jan 9 21:20:30 EST 2011
Second alpha release of Test::Builder2.
Technology Demonstrator.
Design complete.
Threads broken.
Subtests broken.
Test::Builder converted to use Test::Builder2 infrastructure.
Let's see how much of CPAN this breaks.
2.00_01 Mon Sep 6 14:42:38 2010 -0700
First alpha release of Test::Builder2.
Technology Preview.
Very incomplete.
0.98_03
New Features
* cmp_ok() will error when used with something which is not a
comparison operator, including =, += and the like.
[github 141]
Bug Fixes
* use_ok() was calling class->import without quoting which could
cause problems if "class" is also a function.
Doc Fixes
* use_ok() has been discouraged and de-emphasized as a general
replacement for `use` in tests. [github #288]
Incompatible Changes With Previous Alphas
* use_ok() will no longer apply lexical pragams. The incompatibilities
and extra complexity is not worth the marginal use.
[github #287]
0.98_02 Thu Nov 24 01:13:53 PST 2011
Bug Fixes
* use_ok() in 0.98_01 was leaking pragmas from inside Test::More.
This looked like Test::More was forcing strict. [rt.cpan.org 67538]
(Father Chrysostomos)
0.98_01 Tue Nov 8 17:07:58 PST 2011
Bug Fixes
* BAIL_OUT works inside a subtest. (Larry Leszczynski) [github #138]
* subtests now work with threads turned on. [github #145]
Feature Changes
* use_ok() will now apply lexical effects. [rt.cpan.org 67538]
(Father Chrysostomos)
Misc
* Test::More, Test::Simple and Test::Builder::Module now require
a minimum version of Test::Builder. This avoids Test::More and
Test::Builder from getting out of sync. [github #89]
0.98 Wed, 23 Feb 2011 14:38:02 +1100
Bug Fixes
* subtest() should not fail if $? is non-zero. (Aaron Crane)
Docs
* The behavior of is() and undef has been documented. (Pedro Melo)
0.97_01 Fri Aug 27 22:50:30 PDT 2010
Test Fixes
* Adapted the tests for the new Perl 5.14 regex stringification.
(Karl Williamson) [github 44]
Doc Fixes
* Document how to test "use Foo ()". (Todd Rinaldo) [github 41]
Feature Changes
* subtest() no longer has a prototype. It was just getting in the way.
[rt.cpan.org 54239]
* The filehandles used by default will now inherit any filehandle
disciplines from STDOUT and STDERR IF AND ONLY IF they were applied
before Test::Builder is loaded. More later. [rt.cpan.org 46542]
0.96 Tue Aug 10 21:13:04 PDT 2010
Bug Fixes
* You can call done_testing() again after reset() [googlecode 59]
Other
* Bug tracker moved to github
0.95_02 Wed May 19 15:46:52 PDT 2010
Bug Fixes
* Correct various typos and spelling errors (Nick Cleaton)
* Fix alignment of indented multi-line diagnostics from subtests
(Nick Cleaton)
* Fix incorrect operation when subtest called from within a todo block
(Nick Cleaton)
* Avoid spurious output after a fork within a subtest
(Nick Cleaton)
0.95_01 Wed Mar 3 15:36:59 PST 2010
Bug Fixes
* is_deeply() didn't see a difference in regexes [rt.cpan.org 53469]
* Test::Builder::Tester now sets $tb->todo_output to the output handle and
not the error handle (to be in accordance with the default behaviour of
Test::Builder and allow for testing TODO test behaviour).
* Fixed file/line in failing subtest() diagnostics. (Nick Cleaton)
* Protect against subtests setting $Level (Nick Cleaton)
New Features
* subtests without a 'plan' or 'no_plan' have an implicit 'done_testing()'
added to them.
* is_deeply() performance boost for large structures consisting of
mostly non-refs (Nick Cleaton)
Feature Changes
* is() and others will no longer stringify its arguments before
comparing. Overloaded objects will make use of their eq
overload rather than their "" overload. This can break tests of
impolitely string overloaded objects. DateTime prior to 0.54 is
the biggest example.
0.94 Wed Sep 2 11:17:47 PDT 2009
Releasing 0.93_01 as stable.
0.93_01 Mon Jul 20 09:51:08 PDT 2009
Bug Fixes
* Make sure that subtest works with Test:: modules which call
Test::Builder->new at the top of their code. (Ovid)
Other
* subtest() returns!
0.92 Fri Jul 3 11:08:56 PDT 2009
Test Fixes
* Silence noise on VMS in exit.t (Craig Berry)
* Skip Builder/fork_with_new_stdout.t on systems without fork (Craig Berry)
0.90 Thu Jul 2 13:18:25 PDT 2009
Docs
* Note the IO::Stringy license in our copy of it.
[test-more.googlecode.com 47]
Other
* This is a stable release for 5.10.1. It does not include
the subtest() work in 0.89_01.
0.89_01 Tue Jun 23 15:13:16 EDT 2009
New Features
* subtest() allows you to run more tests in their own plan.
(Thanks Ovid!)
* Test::Builder->is_passing() will let you check if the test is
currently passing.
Docs
* Finally added a note about the "Wide character in print" warning and
how to work around it.
Test Fixes
* Small fixes for integration with the Perl core
[bleadperl eaa0815147e13cd4ab5b3d6ca8f26544a9f0c3b4]
* exit code tests could be effected by errno when PERLIO=stdio
[bleadperl c76230386fc5e6fba9fdbeab473abbf4f4adcbe3]
0.88 Sat May 30 12:31:24 PDT 2009
Turing 0.87_03 into a stable release.
0.87_03 Sun May 24 13:41:40 PDT 2009
New Features
* isa_ok() now works on classes. (Peter Scott)
0.87_02 Sat Apr 11 12:54:14 PDT 2009
Test Fixes
* Some filesystems don't like it when you open a file for writing multiple
times. Fixes t/Builder/reset.t. [rt.cpan.org 17298]
* Check how an operating system is going to map exit codes. Some OS'
will map them... sometimes. [rt.cpan.org 42148]
* Fix Test::Builder::NoOutput on 5.6.2.
0.87_01 Sun Mar 29 09:56:52 BST 2009
New Features
* done_testing() allows you to declare that you have finished running tests,
and how many you ran. It is a safer no_plan and effectively replaces it.
* output() now supports scalar references.
Feature Changes
* You can now run a test without first declaring a plan. This allows
done_testing() to work.
* You can now call current_test() without first declaring a plan.
Bug Fixes
* skip_all() with no reason would output "1..0" which is invalid TAP. It will
now always include the SKIP directive.
Other
* Repository moved to github.
0.86 Sun Nov 9 01:09:05 PST 2008
Same as 0.85_01
0.85_01 Thu Oct 23 18:57:38 PDT 2008
New Features
* cmp_ok() now displays the error if the comparison throws one.
For example, broken overloaded objects.
Bug Fixes
* cmp_ok() no longer stringifies or numifies its arguments before comparing.
This makes cmp_ok() properly test overloaded ops.
[rt.cpan.org 24186] [code.google.com 16]
* diag() properly escapes blank lines.
Feature Changes
* cmp_ok() now reports warnings and errors as coming from inside cmp_ok,
as well as reporting the caller's file and line. This let's the user
know where cmp_ok() was called from while reminding them that it is
being run in a different context.
Other
* Dependency on ExtUtils::MakeMaker 6.27 only on Windows otherwise the
nested tests won't run.
0.84 Wed Oct 15 09:06:12 EDT 2008
Other
* 0.82 accidentally shipped with experimental Mouse dependency.
0.82 Tue Oct 14 23:06:56 EDT 2008
Bug Fixes
- 0.81_01 broke $TODO such that $TODO = '' was considered todo.
0.81_02 Tue Sep 9 04:35:40 PDT 2008
New Features
* Test::Builder->reset_outputs() to reset all the output methods back to
their defaults.
Bug Fixes
- Fixed the file and line number reported by like when it gets a bad
regex.
Feature Changes
- Now preserves the tests' exit code if it exits abnormally, rather than
setting it to 255.
- Changed the "Looks like your test died" message to
"Looks like your test exited with $exit_code"
- no_plan now only warns if given an argument. There were a lot of people
doing that, and it's a sensible mistake. [test-more.googlecode.com 13]
0.81_01 Sat Sep 6 15:13:50 PDT 2008
New Features
* Adam Kennedy bribed me to add new_ok(). The price was one DEFCON license key.
[rt.cpan.org 8891]
* TODO tests can now start and end with 'todo_start' and 'todo_end'
Test::Builder methods. [rt.cpan.org 38018]
* Added Test::Builder->in_todo() for a safe way to check if a test is inside a
TODO block. This allows TODO tests with no reason.
* Added note() and explain() to both Test::More and Test::Builder.
[rt.cpan.org 14764] [test-more.googlecode.com 3]
Feature Changes
* Changed the message for extra tests run to show the number of tests run rather than
the number extra to avoid the user having to do mental math.
[rt.cpan.org 7022]
Bug fixes
- using a relative path to perl broke tests [rt.cpan.org 34050]
- use_ok() broke $SIG{__DIE__} in the used module [rt.cpan.org 34065]
- diagnostics for isnt() were confusing on failure [rt.cpan.org 33642]
- warnings when MakeMaker's version contained _ [rt.cpan.org 33626]
- add explicit test that non-integer plans die correctly [rt.cpan.org 28836]
(Thanks to Hans Dieter Pearcey [confound] for fixing the above)
- die if no_plan is given an argument [rt.cpan.org 27429]
0.80 Sun Apr 6 17:25:01 CEST 2008
Test fixes
- Completely disable the utf8 test. It was causing perl to panic on some OS's.
0.79_01 Wed Feb 27 03:04:54 PST 2008
Bug fixes
- Let's try the IO layer copying again, this time with the test
fixed for 5.10.
0.78 Wed Feb 27 01:59:09 PST 2008
Bug fixes
* Whoops, the version of Test::Builder::Tester got moved backwards.
0.77 Wed Feb 27 01:55:55 PST 2008
Bug fixes
- "use Test::Builder::Module" no longer sets exported_to() or does
any other importing.
- Fix the $TODO finding code so it can find $TODO without the benefit
of exported_to(), which is often wrong.
- Turn off the filehandle locale stuff for the moment, there's a
problem on 5.10. We'll try it again next release.
Doc improvements
- Improve the Test::Builder SYNOPSIS to use Test::Builder::Module
rather than write it's own import().
0.76_02 Sun Feb 24 13:12:55 PST 2008
Bug fixes
* The default test output filehandles will NOT use utf8.
They will now copy the IO layers from STDOUT and STDERR.
This means if :utf8 is on then it will honor it and not
warn about wide characters.
0.76_01 Sat Feb 23 20:44:32 PST 2008
Bug fixes
* Test::Builder no longer uses a __DIE__ handler. This resolves a number
of problems with exit codes being swallowed or other module's handlers
being interfered with. [rt.cpan.org 25294]
- Allow maybe_regex() to detect blessed regexes. [bleadperl @32880]
- The default test output filehandles will now use utf8.
[rt.cpan.org 21091]
Test fixes
- Remove the signature test. Adds no security and just generates
failures.
0.75 Sat Feb 23 19:03:38 PST 2008
Incompatibilities
* The minimum version is now 5.6.0.
Bug fixes
- Turns out require_ok() had the same bug as use_ok() in a BEGIN block.
- ok() was not honoring exported_to() when looking for $TODO as it
should be.
Test fixes
* is_deeply_with_threads.t will not run unless AUTHOR_TESTING is set.
This is because it tickles intermittent threading bugs in many perls
and causes a lot of bug reports about which I can do nothing.
Misc
- Ran through perlcritic and did some cleaning.
0.74 Thu Nov 29 15:39:57 PST 2007
Misc
- Add abstract and author to the meta information.
0.73_01 Mon Oct 15 20:35:15 EDT 2007
Bug fixes
* Put the use_ok() fix from 0.71 back.
0.72 Wed Sep 19 20:08:07 PDT 2007
Bug unfixes
* The BEGIN { use_ok } fix for [rt.cpan.org 28345] revealed a small pile of
mistakes in CPAN module test suites. Rolling the fix back to give the
authors a bit of time to fix their tests.
0.71 Thu Sep 13 20:42:36 PDT 2007
Bug fixes
- Fixed a problem with BEGIN { use_ok } silently failing when there's no
plan set. [rt.cpan.org 28345] Thanks Adriano Ferreira and Yitzchak.
- Fixed an obscure problem with is_deeply() and overloading ==
[rt.cpan.org 20768]. Thanks Sisyphus.
Test fixes
- Removed dependency on Text::Soundex [rt.cpan.org 25022]
- Fixed a 5.5.x failure in fail-more.t
* Got rid of the annoying sort_bug.t test that revealed problems with some
threaded perls. It was testing the deprecated eq_* functions and not
worth the bother. Now it tests is_deeply(). [rt.cpan.org 17791]
Doc fixes
- Minor POD mistake in Test::Builder [rt.cpan.org 28869]
* Test::FAQ has been updated with some more answers.
Install fixes
- Fixed the "LICENSE is not a known MakeMaker parameter name" warning
on older MakeMakers for real this time.
0.70 Thu Mar 15 15:53:05 PDT 2007
Bug Fixes
* The change to is_fh() in 0.68 broke the case where a reference to
a tied filehandle is used for perl 5.6 and back. This made the tests
puke their guts out.
0.69 Wed Mar 14 06:43:35 PDT 2007
Test fixes
- Minor filename compatibility fix to t/fail-more.t [rt.cpan.org 25428]
0.68 Tue Mar 13 17:27:26 PDT 2007
Bug fixes
* If your code has a $SIG{__DIE__} handler in some cases functions like
use_ok(), require_ok(), can_ok() and isa_ok() could trigger that
handler. [rt.cpan.org 23509]
- Minor improvement to TB's filehandle detection in the case of overridden
isa(). [rt.cpan.org 20890]
- Will now install as a core module in 5.6.2 which ships with Test::More.
[rt.cpan.org 25163]
New Features
- Test::Builder->is_fh() provides a way to determine if a thing
can be used as a filehandle.
Documentation improvements
- Improved the docs for $Test::Builder::Level showing the encouraged
use (increment, don't set)
- Documented the return value of Test::Builder's test methods
- Split out TB's method documentation to differenciate between test
methods (ok, is_eq...), methods useful in testing (skip, BAILOUT...)
and methods useful for building your own tests (maybe_regex...).
Test fixes
- We required too old a version of Test::Pod::Coverage. Need 1.08 and not
1.00. [rt.cpan.org 25351]
0.67 Mon Jan 22 13:27:40 PST 2007
Test fixes
- t/pod_coverage.t would fail if Test::Pod::Coverage between 1.07 and
1.00 were installed as it depended on all_modules being exported.
[rt.cpan.org 24483]
0.66 Sun Dec 3 15:25:45 PST 2006
- Restore 5.4.5 compatibility ([email protected]) [rt.cpan.org 20513]
0.65 Fri Nov 10 10:26:51 CST 2006
0.64_03 Sun Nov 5 13:09:55 EST 2006
- Tests will no longer warn when run against an alpha version of
Test::Harness [rt.cpan.org #20501]
- Now testing our POD and POD coverage.
- Added a LICENSE field.
- Removed warning from the docs about mixing numbered and unnumbered
tests. There's nothing wrong with that. [rt.cpan.org 21358]
- Change doc examples to talk about $got and $expected rather than
$this and $that to correspond better to the diagnostic output
[rt.cpan.org 2655]
0.64_02 Sat Sep 9 12:16:56 EDT 2006
- Last release broke Perls earlier than 5.8.
0.64_01 Mon Sep 4 04:40:42 EDT 2006
- Small improvement to the docs to avoid user confusion over
"use Test::More tests => $num_tests" (Thanks Eric Wilhelm)
- Minor fix for a test failure in is_deeply_fail for some Windows
users. Not a real bug. [rt.cpan.org 21310]
- _print_diag() accidentally leaked into the public documentation.
It is a private method.
* Added Test::Builder->carp() and croak()
* Made most of the error messages report in the caller's context.
[rt.cpan.org #20639]
* Made the failure diagnostic message file and line reporting portion
match Perl's for easier integration with Perl aware editors.
(so its "at $file line $line_num." now)
[rt.cpan.org #20639]
* 5.8.0 threads are no longer supported. There's too many bugs.
0.64 Sun Jul 16 02:47:29 PDT 2006
* 0.63's change to test_fail() broke backwards compatibility. They
have been removed for the time being. test_pass() went with it.
This is [rt.cpan.org 11317] and [rt.cpan.org 11319].
- skip() will now warn if you get the args backwards.
0.63 Sun Jul 9 02:36:36 PDT 2006
* Fixed can_ok() to gracefully handle no class name.
Submitted by "Pete Krawczyk" <[email protected]>
Implemented by "Richard Foley" <[email protected]>
[rt.cpan.org 15654]
* Added test_pass() to Test::Builder::Tester rather than having to
call test_out("ok 1 - foo"). <[email protected]> [rt.cpan.org 11317]
* test_fail() now accepts a test diagnostic rather than having to
call test_out() separately. <[email protected]> [rt.cpan.org 11319]
- Changed Test::Builder::Tester docs to show best practice using
test_fail() and test_pass().
- isnt_num() doc example wrongly showed is_num(). <[email protected]>
- Fixed a minor typo in the BAIL_OUT() docs. <Jeff Deifik>
- Removed the LICENSE field from the Makefile.PL as the release of
MakeMaker with that feature has been delayed.
0.62 Sat Oct 8 01:25:03 PDT 2005
* Absorbed Test::Builder::Tester. The last release broke it because its
screen scraping Test::More and the failure output changed. By
distributing them together we ensure TBT won't break again.
* Test::Builder->BAILOUT() was missing.
- is_deeply() can now handle function and code refs in a very limited
way. It simply looks to see if they have the same referent.
[rt.cpan.org 14746]
0.61 Fri Sep 23 23:26:05 PDT 2005
- create.t was trying to read from a file before it had been closed
(and thus the changes may not have yet been written).
* is_deeply() would call stringification methods on non-object strings
which happened to be the name of a string overloaded class.
[rt.cpan.org 14675]
0.60_02 Tue Aug 9 00:27:41 PDT 2005
* Added Test::Builder::Module.
- Changed Test::More and Test::Simple to use Test::Builder::Module
- Minor Win32 testing nit in fail-more.t
* Added no_diag() method to Test::Builder and changed Test::More's
no_diag internals to use that. [rt.cpan.org 8655]
* Deprecated no_diag() as an option to "use Test::More". Call the
Test::Builder method instead.
0.60_01 Sun Jul 3 18:11:58 PDT 2005
- Moved the docs around a little to better group all the testing
functions together. [rt.cpan.org 8388]
* Added a BAIL_OUT() function to Test::More [rt.cpan.org 8381]
- Changed Test::Builder->BAILOUT to BAIL_OUT to match other method's
naming conventions. BAILOUT remains but is deprecated.
* Changed the standard failure diagnostics to include the test name.
[rt.cpan.org 12490]
- is_deeply() was broken for overloaded objects in the top level in
0.59_01. [rt.cpan.org 13506]
- String overloaded objects without an 'eq' or '==' method are now
handled in cmp_ok() and is().
- cmp_ok() will now treat overloaded objects as numbers if the comparison
operator is numeric. [rt.cpan.org 13156]
- cmp_ok(), like() and unlike will now throw uninit warnings if their
arguments are undefined. [rt.cpan.org 13155]
- cmp_ok() will now throw warnings as if the comparison were run
normally, for example cmp_ok(2, '==', 'foo') will warn about 'foo'
not being numeric. Previously all warnings in the comparison were
suppressed. [rt.cpan.org 13155]
- Tests will now report *both* the number of tests failed and if the
wrong number of tests were run. Previously if tests failed and the
wrong number were run it would only report the latter.
[rt.cpan.org 13494]
- Missing or extra tests are not considered failures for the purposes
of calculating the exit code. Should there be no failures but the
wrong number of tests the exit code will be 254.
- Avoiding an unbalanced sort in eq_set() [bugs.perl.org 36354]
- Documenting that eq_set() doesn't deal well with refs.
- Clarified how is_deeply() compares a bit.
* Once again working on 5.4.5.
0.60 Tue May 3 14:20:34 PDT 2005
0.59_01 Tue Apr 26 21:51:12 PDT 2005
* Test::Builder now has a create() method which allows you to create
a brand spanking new Test::Builder object.
* require_ok() was not working for single letter module names.
* is_deeply() and eq_* now work with circular scalar references
(Thanks Fergal)
* Use of eq_* now officially discouraged.
- Removed eq_* from the SYNOPSIS.
- is_deeply(undef, $not_undef); now works. [rt.cpan.org 9441]
- is_deeply() was mistakenly interpreting the same reference used twice
in a data structure as being circular causing failures.
[rt.cpan.org 11623]
- Loading Test::Builder but not using it would interfere with the
exit code if the code exited. [rt.cpan.org 12310]
- is_deeply() diagnostics now disambiguate between stringified references
and references. [rt.cpan.org 8865]
- Files opened by the output methods are now autoflushed.
- todo() now honors $Level when looking for $TODO.
0.54 Wed Dec 15 04:18:43 EST 2004
* $how_many is optional for skip() and todo_skip(). Thanks to
Devel::Cover for pointing this out.
- Removed a user defined function called err() in the tests to placate
users of older versions of the dor patch before err() was weakend.
[rt.cpan.org 8734]
0.53_01 Sat Dec 11 19:02:18 EST 2004
- current_test() can now be set backward.
- *output() methods now handle tied handles and *FOO{IO} properly.
- maybe_regex() now handles undef gracefully.
- maybe_regex() now handles 'm,foo,' style regexes.
- sort_bug.t wasn't checking for threads properly. Would fail on
5.6 that had ithreads compiled in. [rt.cpan.org 8765]
0.53 Mon Nov 29 04:43:24 EST 2004
- Apparently its possible to have Module::Signature installed without
it being functional. Fixed the signature test to account for this.
(not a real bug)
0.52 Sun Nov 28 21:41:03 EST 2004
- plan() now better checks that the given plan is valid.
[rt.cpan.org 2597]
0.51_02 Sat Nov 27 01:25:25 EST 2004
* is_deeply() and all the eq_* functions now handle circular data
structures. [rt.cpan.org 7289]
* require_ok() now handles filepaths in addition to modules.
- Clarifying Test::More's position on overloaded objects
- Fixed a bug introduced in 0.51_01 causing is_deeply() to pierce
overloaded objects.
- Mentioning rt.cpan.org for reporting bugs.
0.51_01 Fri Nov 26 02:59:30 EST 2004
- plan() was accidentally exporting functions [rt.cpan.org 8385]
* diag @msgs would insert # between arguments. [rt.cpan.org 8392]
* eq_set() could cause problems under threads due to a weird sort bug
[rt.cpan.org 6782]
* undef no longer equals '' in is_deeply() [rt.cpan.org 6837]
* is_deeply() would sometimes compare references as strings.
[rt.cpan.org 7031]
- eq_array() and eq_hash() could hold onto references if they failed
keeping them in memory and preventing DESTROY. [rt.cpan.org 7032]
* is_deeply() could confuse [] with a non-existing value
[rt.cpan.org 7030]
- is_deeply() diagnostics a little off when scalar refs were inside
an array or hash ref [rt.cpan.org 7033]
- Thanks to Fergal Daly for ferretting out all these long standing
is_deeply and eq_* bugs.
0.51 Tue Nov 23 04:51:12 EST 2004
- Fixed bug in fail_one.t on Windows (not a real bug).
- TODO reasons as overloaded objects now won't blow up under threads.
[Autrijus Tang]
- skip() in 0.50 tickled yet another bug in threads::shared. Hacked
around it.
0.50 Sat Nov 20 00:28:44 EST 2004
- Fixed bug in fail-more test on Windows (not a real bug).
[rt.cpan.org 8022]
- Change from CVS to SVK. Hopefully this is the last time I move
version control systems.
- Again removing File::Spec dependency (came back in 0.48_02)
- Change from Aegis back to CVS
0.49 Thu Oct 14 21:58:50 EDT 2004
- t/harness_active.t would fail for frivolous reasons with older
MakeMakers (test bug) [thanks Bill Moseley for noticing]
0.48_02 Mon Jul 19 02:07:23 EDT 2004
* Overloaded objects as names now won't blow up under threads
[rt.cpan.org 4218 and 4232]
* Overloaded objects which stringify to undef used as test names
now won't cause internal uninit warnings. [rt.cpan.org 4232]
* Failure diagnostics now come out on their own line when run in
Test::Harness.
- eq_set() sometimes wasn't giving the right results if nested refs
were involved [rt.cpan.org 3747]
- isnt() giving wrong diagnostics and warning if given any undefs.
* Give unlike() the right prototype [rt.cpan.org 4944]
- Change from CVS to Aegis
- is_deeply() will now do some basic argument checks to guard against
accidentally passing in a whole array instead of its reference.
- Mentioning Test::Differences, Test::Deep and Bundle::Test.
- Removed dependency on File::Spec.
- Fixing the grammar of diagnostic outputs when only a single test
is run or failed (ie. "Looks like you failed 1 tests").
[Darren Chamberlain]
0.48_01 Mon Nov 11 02:36:43 EST 2002
- Mention Test::Class in Test::More's SEE ALSO
* use_ok() now DWIM for version checks
- More problems with ithreads fixed.
* Test::Harness upgrade no longer optional. It was causing too
many problems when the T::H upgrade didn't work.
* Drew Taylor added a 'no_diag' option to Test::More to switch
off all diag() statements.
* Test::Builder/More no longer automatically loads threads.pm
when threads are enabled. The user must now do this manually.
* Alex Francis added reset() reset the state of Test::Builder in
persistent environments.
- David Hand noted that Test::Builder/More exit code behavior was
not documented. Only Test::Simple.
0.47 Mon Aug 26 03:54:22 PDT 2002
* Tatsuhiko Miyagawa noticed Test::Builder was accidentally storing
objects passed into test functions causing problems with tests
relying on object destruction.
- Added example of calculating the number of tests to Test::Tutorial
- Peter Scott made the ending logic not fire on child processes when
forking.
* Test::Builder is once again ithread safe.
0.46 Sat Jul 20 19:57:40 EDT 2002
- Noted eq_set() isn't really a set comparison.
- Test fix, exit codes are broken on MacPerl (bleadperl@16868)
- Make Test::Simple install itself into the core for >= 5.8
- Small fixes to Test::Tutorial and skip examples
* Added TB->has_plan() from Adrian Howard
- Clarified the meaning of 'actual_ok' from TB->details
* Added TB->details() from chromatic
- Neil Watkiss fixed a pre-5.8 test glitch with threads.t
* If the test died before a plan, it would exit with 0 [ID 20020716.013]
0.45 Wed Jun 19 18:41:12 EDT 2002
- Andy Lester made the SKIP & TODO docs a bit clearer.
- Explicitly disallowing double plans. (RT #553)
- Kicking up the minimum version of Test::Harness to one that's
fairly bug free.
- Made clear a common problem with use_ok and BEGIN blocks.
- Arthur Bergman made Test::Builder thread-safe.
0.44 Thu Apr 25 00:27:27 EDT 2002
- names containing newlines no longer produce confusing output
(from chromatic)