Skip to content

Single Hpp File - v.8.7.0

Compare
Choose a tag to compare
@claremacrae claremacrae released this 15 May 17:51
· 1820 commits to master since this release

See the v.8.7.0 milestone for the full list of changes.

  • Breaking changes
    • Planned deprecation: The overloads of verify(), verifyAll() and verifyAllCombinations() which take a Reporter have been deprecated.
    • If you happen to have specialised StringUtils::toString(), you would now need to specialize StringMaker::toString() instead.
      • Note: this was previously unsupported behavior, so we are not bumping the major version number.
      • Here is how to update your code:
template <>
-std::string ApprovalTests::StringUtils::toString(const StringMakerPrintable& printable)
+std::string ApprovalTests::StringMaker::toString(const StringMakerPrintable& printable)
  • New features
    • New Scrubber feature for working with non-deterministic output. (#126, thank you @abdulg, @haraldreingruber, @jawn)
    • New Options class provides consistent interface for customising the following in all verify(), verifyAll() and verifyAllCombinations() calls:
    • New mechanics for String conversions (thank you @alepez)
      • The class Approvals is now an alias for TApprovals< ToStringCompileTimeOptions< StringMaker > >
      • CombinationApprovals is now an alias for the class TCombinationApprovals< ToStringCompileTimeOptions<APPROVAL_TESTS_DEFAULT_STREAM_CONVERTER > >, instead of being a namespace.
      • This is a completely backwards-compatible feature.
      • It has been done to support a new feature in a future release. (#124)
    • Our Conan.io package now supports our Boost.Test integration (#121)
  • Bug fixes
    • None
  • Other changes
Old New
APPROVALTESTS_VERSION APPROVAL_TESTS_VERSION
APPROVALTESTS_VERSION_MAJOR APPROVAL_TESTS_VERSION_MAJOR
APPROVALTESTS_VERSION_MINOR APPROVAL_TESTS_VERSION_MINOR
APPROVALTESTS_VERSION_PATCH APPROVAL_TESTS_VERSION_PATCH
APPROVALTESTS_VERSION_STR APPROVAL_TESTS_VERSION_STR
APPROVALS_CATCH_DISABLE_FILE_MACRO_CHECK APPROVAL_TESTS_DISABLE_FILE_MACRO_CHECK