Skip to content

Releases: approvals/ApprovalTests.cpp

Single Hpp File - v.10.1.0

22 Jun 07:15
Compare
Choose a tag to compare
  • Breaking changes
    • None
  • New features
    • ApprovalTests::verifyExistingFile() now supports scrubbers (#141)
  • Bug fixes
    • None
  • Other changes
    • None

Single Hpp File - v.10.0.1

06 Jun 13:52
Compare
Choose a tag to compare
  • Breaking changes
    • None
  • New features
    • None
  • Bug fixes
    • Fixed compilation error with Approvals::verify(writer, Options) (#139)
  • Other changes
    • None

Single Hpp File - v.10.0.0

04 Jun 20:14
Compare
Choose a tag to compare

DON'T PANIC!

We expect most of our users to have no problem with this upgrade. Changes are only needed when:

  1. you are passing in a specific reporter, which is usually an infrequent and temporary coding state,
  2. you call verifyWithExtension(object, ".json") is now
    Approvals::verify(object, Options().fileOptions().withFileExtension(".json"))

Removing verify(..., Reporter)

This is the fourth and final of a series of rapid releases, to make small steps in deprecating passing in a Reporter object, in favor of an Options object, to the verify*() methods. See Why We Are Converting To Options for easy ways to update your code.

  1. deprecation warnings are off: users can opt-in (v.8.7.0)
  2. deprecation warnings are on: users can opt-out (v.8.9.1)
  3. deprecation warnings are forced, code still exists (v.8.9.2)
  4. the deprecated methods are hidden: users can opt-in (v.9.0.0)
  5. the deprecated methods are removed (v.10.0.0) <== you are here
  • Breaking changes

    • Removed methods:
      • Approvals::verify(..., Reporter)
      • Approvals::verifyAll(..., Reporter)
      • Approvals::verifyExistingFile(..., Reporter)
      • Approvals::verifyExceptionMessage(..., Reporter)
      • Approvals::verifyWithExtension(...)
      • CombinationApprovals::verifyAllCombinations(Reporter, ...)
    • Removed macros:
      • APPROVAL_TESTS_HIDE_DEPRECATED_CODE
      • APPROVALTESTS_VERSION
      • APPROVALTESTS_VERSION_MAJOR
      • APPROVALTESTS_VERSION_MINOR
      • APPROVALTESTS_VERSION_PATCH
      • APPROVALTESTS_VERSION_STR
      • APPROVALS_CATCH_DISABLE_FILE_MACRO_CHECK
    • The following macros have been changed.
Old (removed) 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
  • New features
    • None
  • Bug fixes
    • None
  • Other changes
    • None

Single Hpp File - v.9.0.0

03 Jun 21:38
Compare
Choose a tag to compare

DON'T PANIC!

We expect most of our users to have no problem with this upgrade. Changes are only needed when:

  1. you are passing in a specific reporter, which is usually an infrequent and temporary coding state,
  2. you call verifyWithExtension(object, ".json") is now
    Approvals::verify(object, Options().fileOptions().withFileExtension(".json"))

Deprecating verify(..., Reporter)

This is the third of a series of rapid releases, to make small steps in deprecating passing in a Reporter object, in favor of an Options object, to the verify*() methods. See Why We Are Converting To Options for easy ways to update your code.

  1. deprecation warnings are off: users can opt-in (v.8.7.0)
  2. deprecation warnings are on: users can opt-out (v.8.9.1)
  3. deprecation warnings are forced, code still exists (v.8.9.2)
  4. the deprecated methods are hidden: users can opt-in (v.9.0.0) <== you are here
  5. the deprecated methods are removed
  • Breaking changes
    • Hidden methods:
      • Approvals::verify(..., Reporter)
      • Approvals::verifyAll(..., Reporter)
      • Approvals::verifyExistingFile(..., Reporter)
      • Approvals::verifyExceptionMessage(..., Reporter)
      • Approvals::verifyWithExtension(...)
      • CombinationApprovals::verifyAllCombinations(Reporter, ...)
    • Hidden macros:
      • APPROVAL_TESTS_HIDE_DEPRECATED_CODE
      • APPROVALTESTS_VERSION
      • APPROVALTESTS_VERSION_MAJOR
      • APPROVALTESTS_VERSION_MINOR
      • APPROVALTESTS_VERSION_PATCH
      • APPROVALTESTS_VERSION_STR
      • APPROVALS_CATCH_DISABLE_FILE_MACRO_CHECK
    • The following macros have been changed.
Old (hidden) 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
  • New features
    • None
  • Bug fixes
    • None
  • Other changes
    • APPROVAL_TESTS_HIDE_DEPRECATED_CODE is now enabled by default.

Single Hpp File - v.8.9.2

03 Jun 20:06
Compare
Choose a tag to compare

DON'T PANIC!

We expect most of our users to have no problem with this upgrade. Source code is totally backwards-compatible, as long as you don't treat compiler warnings as errors. Even if you do, it only applies when:

  1. you are passing in a specific reporter, which is usually an infrequent and temporary coding state,
  2. you call verifyWithExtension().

Deprecating verify(..., Reporter)

This is the second of a series of rapid releases, to make small steps in deprecating passing in a Reporter object, in favor of an Options object, to the verify*() methods. See Why We Are Converting To Options for easy ways to update your code.

  1. deprecation warnings are off: users can opt-in (v.8.7.0)
  2. deprecation warnings are on: users can opt-out (v.8.9.1)
  3. deprecation warnings are forced, code still exists (v.8.9.2) <== you are here
  4. the deprecated methods are hidden: users can opt-in
  5. the deprecated methods are removed
  • Breaking changes
    • None
  • New features
    • None
  • Bug fixes
    • None
  • Other changes
    • APPROVAL_TESTS_SHOW_DEPRECATION_WARNINGS is now ignored. Warnings are always shown when using the verify*() methods that took a Reporter.

Single Hpp File - v.8.9.1

03 Jun 19:13
Compare
Choose a tag to compare

DON'T PANIC!

We expect most of our users to have no problem with this upgrade. Source code is totally backwards-compatible, as long as you don't treat compiler warnings as errors. Even if you do, it only applies when:

  1. you are passing in a specific reporter, which is usually an infrequent and temporary coding state,
  2. you call verifyWithExtension().

Deprecating verify(..., Reporter)

This is the first of a series of rapid releases, to make small steps in deprecating passing in a Reporter object, in favor of an Options object, to the verify*() methods. See Why We Are Converting To Options for easy ways to update your code.

  1. deprecation warnings are off: users can opt-in (v.8.7.0)
  2. deprecation warnings are on: users can opt-out (v.8.9.1) <== you are here
  3. deprecation warnings are forced, code still exists
  4. the deprecated methods are hidden: users can opt-in
  5. the deprecated methods are removed
  • Breaking changes
    • None
  • New features
    • None
  • Bug fixes
    • None
  • Other changes
    • APPROVAL_TESTS_SHOW_DEPRECATION_WARNINGS is now enabled by default.

Single Hpp File - v.8.9.0

01 Jun 20:48
Compare
Choose a tag to compare

Single Hpp File - v.8.8.1

28 May 17:31
Compare
Choose a tag to compare
  • Breaking changes
    • None
  • New features
    • None
  • Bug fixes
    • None
  • Other changes
    • Add support for doctest 2.3.8 (#135, thank you @YarikTH)
    • This project can now be built using a {fmt} source tree (#136)

Single Hpp File - v.8.8.0

18 May 22:19
Compare
Choose a tag to compare

Single Hpp File - v.8.7.1

18 May 20:03
Compare
Choose a tag to compare
  • Breaking changes
    • None
  • New features
    • None
  • Bug fixes
    • Fix compilation of TCombinationApprovals on C++14 and above, when deprecation warnings are enabled (#132)
  • Other changes
    • None