0.9.12
~~~~~~
This is a very big release. We've made huge improvements on three fronts:
1. Test failures are way nicer and easier to read
2. Matchers and ``assertThat`` are much more convenient to use
3. Correct handling of extended unicode characters
We've trimmed off the fat from the stack trace you get when tests fail, we've
cut out the bits of error messages that just didn't help, we've made it easier
to annotate mismatch failures, to compare complex objects and to match raised
exceptions.
Testing code was never this fun.
Changes
-------
* ``AfterPreproccessing`` renamed to ``AfterPreprocessing``, which is a more
correct spelling. Old name preserved for backwards compatibility, but is
now deprecated. Please stop using it.
(Jonathan Lange, #813460)
* ``assertThat`` raises ``MismatchError`` instead of
``TestCase.failureException``. ``MismatchError`` is a subclass of
``AssertionError``, so in most cases this change will not matter. However,
if ``self.failureException`` has been set to a non-default value, then
mismatches will become test errors rather than test failures.
* ``gather_details`` takes two dicts, rather than two detailed objects.
(Jonathan Lange, #801027)
* ``MatchesRegex`` mismatch now says "<value> does not match /<regex>/" rather
than "<regex> did not match <value>". The regular expression contains fewer
backslashes too. (Jonathan Lange, #818079)
* Tests that run with ``AsynchronousDeferredRunTest`` now have the ``reactor``
attribute set to the running reactor. (Jonathan Lange, #720749)
Improvements
------------
* All public matchers are now in ``testtools.matchers.__all__``.
(Jonathan Lange, #784859)
* ``assertThat`` can actually display mismatches and matchers that contain
extended unicode characters. (Jonathan Lange, Martin [gz], #804127)
* ``assertThat`` output is much less verbose, displaying only what the mismatch
tells us to display. Old-style verbose output can be had by passing
``verbose=True`` to assertThat. (Jonathan Lange, #675323, #593190)
* ``assertThat`` accepts a message which will be used to annotate the matcher.
This can be given as a third parameter or as a keyword parameter.
(Robert Collins)
* Automated the Launchpad part of the release process.
(Jonathan Lange, #623486)
* Correctly display non-ASCII unicode output on terminals that claim to have a
unicode encoding. (Martin [gz], #804122)
* ``DocTestMatches`` correctly handles unicode output from examples, rather
than raising an error. (Martin [gz], #764170)
* ``ErrorHolder`` and ``PlaceHolder`` added to docs. (Jonathan Lange, #816597)
* ``ExpectedException`` now matches any exception of the given type by
default, and also allows specifying a ``Matcher`` rather than a mere regular
expression. (Jonathan Lange, #791889)
* ``FixtureSuite`` added, allows test suites to run with a given fixture.
(Jonathan Lange)
* Hide testtools's own stack frames when displaying tracebacks, making it
easier for test authors to focus on their errors.
(Jonathan Lange, Martin [gz], #788974)
* Less boilerplate displayed in test failures and errors.
(Jonathan Lange, #660852)
* ``MatchesException`` now allows you to match exceptions against any matcher,
rather than just regular expressions. (Jonathan Lange, #791889)
* ``MatchesException`` now permits a tuple of types rather than a single type
(when using the type matching mode). (Robert Collins)
* ``MatchesStructure.byEquality`` added to make the common case of matching
many attributes by equality much easier. ``MatchesStructure.byMatcher``
added in case folk want to match by things other than equality.
(Jonathan Lange)
* New convenience assertions, ``assertIsNone`` and ``assertIsNotNone``.
(Christian Kampka)
* New matchers:
* ``AllMatch`` matches many values against a single matcher.
(Jonathan Lange, #615108)
* ``Contains``. (Robert Collins)
* ``GreaterThan``. (Christian Kampka)
* New helper, ``safe_hasattr`` added. (Jonathan Lange)
* ``reraise`` added to ``testtools.compat``. (Jonathan Lange)
HDF5 is a data model, library, and file format for storing and
managing data. It supports an unlimited variety of datatypes, and
is designed for flexible and efficient I/O and for high volume and
complex data. HDF5 is portable and is extensible, allowing applications
to evolve in their use of HDF5. The HDF5 Technology suite includes
tools and applications for managing, manipulating, viewing, and
analyzing data in the HDF5 format.
This package provides C++ wrappers for the HDF5 C library.
Changes from previous:
version 0.91: Mon Jul 11 22:40:02 CEST 2011
Fixes:
- forcearray option with one element
rt.cpan.org#69336 [Matt W Johnson]
version 0.90: Wed Jun 15 10:20:48 CEST 2011
Fixes:
- initialize XML::LibXML::Parser into safe mode.
rt.cpan.org#68803 [Yann Kerherve]
Improvements:
- new Parser and ParserOpts parameters
version 0.15: Thu Apr 28 10:22:34 CEST 2011
Fixes:
- parser object recreated each time, because it cannot be
reused (any more?). [Didier Brun]
Changes from previous:
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]
Now pbulk_scan no longer refuses to countenance this package, so it
can run to completion and build other stuff. I don't think this
package builds anyway...
Changes from previous:
0.3.0
- Reverted feature to match POD head section =head2, =head3 and =head4
because of backward compatibility issue (RT bug #70942)
0.2.9 2011-09-03
- This command does not generate warnings anymore:
perl -e 'use Getopt::Euclid; print $Getopt::Euclid::VERSION;'
- Required and optional arguments can now be put in a POD head section
=head2, =head3 and =head4 for more flexibility
0.2.8 2011-09-02
- Support for optional defaults (RT bug #61438, patch from Paolo Medeo)
- Extended the grammar of recognized POD headers
- Usage error message now mentions the --man option in addition to --help
cleanup, into a jumbo distfile patch. I've almost got a clean WARNS
build; the remaining warnings are almost certainly bugs and need
investigation by someone with deeper knowledge of rtf and/or troff
than I have.
PKGREVISION -> 3
1.17 2011.06.16
- Upgrade to Module::Install 1.01
- Added support for OpenSSL 1.0.0 dsaparam format change.
- Requires perl 5.6 now
- Fixes for 64-bit support
While here, fix SA46275, with upstream patch from
https://rt.cpan.org/Public/Bug/Display.html?id=71421
none pkgsrc-specific) into a distfile jumbo patch. Sort the PLIST.
While this is not supposed to change the resulting package, bump the
PKGREVISION as a precaution and to make sure the build with the patch
gets tested properly.
Changes from previous:
0.20 Sun Sep 18 22:02:11 UTC 2011
- Added fix for XML::Atom bug.
0.19 Wed May 18 02:29:57 UTC 2011
- Fixed handling of expired tokens. (RT #68245)
- Added response method.
0.18 Thu Apr 28 15:48:20 UTC 2011
- Fixed corner case in 'more' method to prevent an infinite loop.
0.17 Wed Mar 30 00:26:09 UTC 2011
- Required newer LWP with better HTTPS support.
0.16 Sun Mar 20 23:43:46 UTC 2011
- Added fix for google alert feeds. (ayanokouz)
- Added another example script.
0.15 Wed Mar 9 17:46:14 UTC 2011
- Updated LWP usage to accomodate a change to the default behaviour
(HTTPS requests now verify the hostname matches the issued certificate).
- Explicitly set the default sort order of entries to desc, as documented.
0.14 Mon Nov 1 02:51:37 UTC 2010
- Fixed search feeds.
- Fixed debug and compress constructor options.
- Added support for "liking" items.
- Updated some methods to accept both lists and array references.
0.13 Tue Oct 26 20:51:30 UTC 2010
- Fixed 'more' method to prevent an infinite loop. - Substituted deprecated API url.
- Added another example script- marks dead craigslist posts as read.
- Updated author tests.
Changes from previous:
0.41 2011.09.26
* Added a dependency to DateTime::TimeZone (leto)
0.40 2011.09.18
* Fixed tests for Windows (wchristian)
* use all upper case UTF-8 (tsgit)
0.39 2011.06.20
* Disabled external entities and network to avoid possible security flaw (yannk)
0.38 2011.05.22
* Fixed a bug where content with newlines wasn't encoded in perl >= 5.12 (emasaka)
https://rt.cpan.org/Public/Bug/Display.html?id=61637
Changes from previous:
0.55 Fri Sep 16 08:55:53 UTC 2011
- add DBD::SQLite to test_requires (RT#70357)
0.54 Fri Aug 5 11:29:00 EDT 2011
- Changed t/08helper.t to skip if required features are not installed.
- tweaked the Makefile.PL to support these changes
0.53 Wed Aug 3 03:45:07 UTC 2011
- check loader args after connect_info against loader methods and remove
them from connect_info
0.52 Thu Jul 28 22:07:38 UTC 2011
- fix a bug in loader args reading after connect_info (skip structs)
0.51 Wed Jul 27 20:57:47 UTC 2011
- warn when helper finds no tables
- accept loader args after connect_info
0.50 Fri May 20 22:45:07 UTC 2011
- change repository link to the new git repo
- get t/05testapp.t to run on Win32
0.49 Wed May 11 06:03:50 UTC 2011
- make sure storage_type class is loaded before ->isa check in
Replicated trait (RT#65791)
- fix regex stringification test for perl 5.14 (RT#68098)
- update connect_info POD (RT#66010)
0.48 Thu Dec 9 21:08:33 UTC 2010
- fix usage of Try::Tiny in helper
0.47 Wed Dec 8 22:21:06 UTC 2010
- fix loader version check
0.46 Wed Dec 8 13:35:28 UTC 2010
- make use_moose detection more robust
0.45 Wed Dec 8 12:05:58 UTC 2010
- fix bug where non-result files were picked up for Moose check
0.44 Tue Dec 7 03:50:48 UTC 2010
- do not upgrade non-Moose schemas to use_moose=1 (RT#60558)
- added col_collision_map => 'column_%s' as default loader option
(will take effect on release of loader 0.07003)
Changes from previous:
0.22 2011-05-09
- Fix issues where the metaclass gets reinitialized after the call to
'extends' but before 'make_immutable'. This could happen if a role
used an extension which provided an application_to_class metarole,
since the role application would then apply a metarole to the class,
and metarole application currently causes metaclass reinitialization
in Moose. (ugh.)
0.21 2011-04-29
- Allow this module to work with constructors with names other than
'new'. If you're extending a class with a constructor named something
other than 'new', you should declare this when calling extends, as in:
extends 'Foo' => { -constructor_name => 'create' };
This will ensure that calling 'create' will also call Moose's
constructor.
0.20 2011-03-22
- fix warning when passing inline_constructor => 0 with no superclass new
method (rafl).
0.19 2011-03-02
- don't die if superclass doesn't have a 'new' method
0.18 2011-02-09
- forward compat for Moose 2.0
0.17 2010-11-08
- convert to Test::Fatal, and dep on it
0.16 2010-10-05
- Make it work with Moose 1.15 (Dave Rolsky).
Changes from previous:
1.33 Thu Aug 4 23:25:14 EDT 2011
- move build_db() to separate .PL script so that module can be
built even if Class::Accessor and other dependencies aren't
available before Makefile.PL is run.
- list GDBM_File as an explicit dependency, assome distributions
like ActivePerl don't include it even though it is a
core module.
1.32 Thu Jun 30 16:38:32 EDT 2011
- make sure utf8 flag set in output of marc8_to_utf8
1.31 Thu Sep 30 10:53:00 EDT 2010
- minor revision to get v1.3 Changes into the CPAN distro :-)
1.3 Wed Sep 29 10:26:49 EDT 2010
- added latest codetables.xml from
http://www.loc.gov/marc/specifications/codetables.xml (thanks to
Mark Muehlhaeusler for noticing that there were some Arabic updates.
I reapplied the changes that François Charette suggested in v0.98
which are still not present in LC's codetable :-(
Provide function in libiscsi to return the compile-time limit on number of
targets. Use this function in the initiator, to ensure that the same limit
is used throughout (i.e. stop you attempting to compile the initiator with a
different limit to the library - the initiator uses the library for most of
its functionality).
If truncating the number of targets in the initiator, truncate it to the
correct amount, not half of what it should be.
Obey RFC3720 when determining targets. SendTargets=All MUST be supported
on a discovery session, and MUST NOT be supported on an operational session.
Previously, SendTargets=All was used both in the initial discovery session
and the later session. (from Daisuke Aoyama - author of istgt).
Allow maximum number of targets in initiator to be set in mk.conf
with ISCSI_INITIATOR_MAX_TARGETS
Changes:
Provide function in libiscsi to return the compile-time limit on number of
targets. Use this function in the initiator, to ensure that the same limit
is used throughout (i.e. stop you attempting to compile the initiator with a
different limit to the library - the initiator uses the library for most of
its functionality).
If truncating the number of targets in the initiator, truncate it to the
correct amount, not half of what it should be.
Obey RFC3720 when determining targets. SendTargets=All MUST be supported
on a discovery session, and MUST NOT be supported on an operational session.
Previously, SendTargets=All was used both in the initial discovery session
and the later session. (from Daisuke Aoyama - author of istgt).
Changes from previous:
1.50 Mon 11 Jul 2011 - Adam Kennedy
- Adding a second skip for the known-bad cygwin file permissions problem
1.49 Wed 14 Mar 2011 - Adam Kennedy
- Restoring 02_directoreis to no_plan as it runs different test counts
on different systems.
1.48 Fri 11 Mar 2011 - Adam Kennedy
- Promoting dev code to production version
- Fixed a major bug in the 1.46 logic that works out what to change the
cwd to when deleting while inside a directory.
1.47_01 Fri 18 Feb 2011 - Adam Kennedy
- Add test counts to all test scripts
- Added a test for space-safe globs
1.46 Fri 18 Feb 2011 - Adam Kennedy
- No changes from 1.45_01
- CPAN Testers likes the dev release, moving to production release
1.45_01 Thu 17 Feb 2011 - Adam Kennedy
- Updated to Module::Install::DSL 1.00
- Skip test on cygwin due to non-root users not being able to deny
themselves write permissions to files.
- Added a test to delete directories when the current working
directory is inside the location to delete (ADAMK)
- Fixes for trash() with callbacks and on Mac (MIYAGAWA)
Changes from previous:
1.34 2011-09-16 09:02:00
- Bump required version of Catalyst to 5.9
- Merge psgi support. catalyst.pl will now generate a default
myapp.psgi file with the default middlewares applied.
- Fix scripts being generated mode 0700, rather than 0755
- Fix duplicate 'use Test::More' statement in generated components.
- Fix Pod for catalyst_ignore function in Module::Install::Catalyst
RT#68563
1.33 2011-03-24 15:10:00
- Fix a regression introduced in 1.32 that caused Catalyst::Restarter
to not work at all.
1.32 2011-03-22 09:17:00
- Fix RT#65907: missing build require: Test::Exception
- Fix RT#57019: Fix bundling of File::Copy::Recursive in inc/
by Module::Install::Catalyst
1.31 2011-01-20 01:08:00
- Fix for copying generated files into installed apps + tests
to ensure it keeps working. abraxxa++
- Make Pod tests author only
1.30 2011-01-11 23:54:00
- Increased Catalyst::Plugin::ConfigLoader dependency to 0.30
- Include File::Copy::Recursive in inc/ when building a dist of an
application.
1.29 2011-01-11 23:51:00
- Add documentation for the --proc_title option to the generated
fastcgi scripts
- Don't bother with the BEGIN { use_ok dance for created tests
- the test will fail to compile (and ergo fail) using just use,
and that's less typing (and less copy-pasting)
- Split method for creating tests into multiple methods to allow
subclasses to override the generation of some tests.
- Allow the author to be defined in the call to ->new to help things
which want to call Catalyst::Helper programatically.
- Remove $VERSION = eval $VERSION handwave in generated code as:
- Gives a perl critic violation.
- If you're shipping a dev release, best practice is you should do
it by renaming the tarball, rather than having a _ in the VERSION.
- Allow catalyst.pl . to work for already created applications
when in the application's directory.
- Note that plugin order is important in the generated skeleton.
- Don't pollute M::I plugin detector with GetOptions symbol from
GetOpt::Long
- Fix typo in share/script/myapp_server.pl.tt (RT #58475)