Skip to content

Releases: approvals/ApprovalTests.cpp

Single Hpp File - v.6.0.0

14 Oct 21:55
Compare
Choose a tag to compare
  • Breaking changes
    • If you pass in a reporter to CombinationApprovals::verifyAllCombinations(), the argument order has changed: see Passing in a Reporter.
    • FileApprover::registerComparator() has been renamed to FileApprover::registerComparatorForExtension(), and now returns a Disposable Object. (#42)
  • New features
  • Bug fixes
    • None
  • Other changes
    • doctest 2.3.5 is now supported (2.3.4 remains supported)

Single Hpp File v.5.1.0

04 Sep 15:41
Compare
Choose a tag to compare

Single Hpp File

28 Aug 20:26
Compare
Choose a tag to compare
  • Breaking changes
    • Virtually all code is now in a new ApprovalTests namespace, and user code will need to be updated (#5). There are two approaches to updating your code:
      • Option 1: Explicitly add ApprovalTests:: to your code, for example:

        -Approvals::verify("My objects!");
        +ApprovalTests::Approvals::verify("My objects!");
        -auto directory = Approvals::useApprovalsSubdirectory("approval_tests");
        +auto directory = ApprovalTests::Approvals::useApprovalsSubdirectory("approval_tests");
      • Option 2: Add a using directive near the top of your test files:

        +using namespace ApprovalTests;
    • ApprovalWriter and ApprovalNamer methods are now const. Any custom implementations of these interfaces will need to be updated. If this causes a problem for custom implementations, please make your data members mutable. (#22, #23)
    • The directory structure of ApprovalTests/ has been tidied up. This won't affect affect users of the single header download. If you use this project as a sub-module, or have cloned it directly, you will need to update the paths in some of your #includes. However, if you would like help updating your tests, please contact us via the details in the Contributing page. (#17)
    • We have removed using std::string; from all our code. If you happen to have code that worked accidentally because our usings brought in string, you might need to update your code.
    • We have removed support for the Okra test framework, as we believe nobody is using the integration, and it was a non-trivial amount of work to get it working again with changes we have made recently.
  • New features
  • Bug fixes
    • Check file streams are valid before using them.
  • Other changes

Single Hpp File

12 Aug 18:06
Compare
Choose a tag to compare
  • Breaking changes
    • CombinationApprovals::verifyAllCombinations() no longer requires the template types to be specified. The changes to allow this have changed the template parameters, so it will cause compilation failures in existing code until they are deleted.
      To change the code, simply delete the <....> from your call. For example:
- CombinationApprovals::verifyAllCombinations<std::vector<std::string>, std::string>(
+ CombinationApprovals::verifyAllCombinations(
    [](std::string s){return s + "!";}, words);
  • New features
    • None
  • Bug fixes
    • Better support for doctest - this requires doctest 2.3.4 - just released.
  • Other changes
    • None

Single Hpp File

30 Jul 18:30
Compare
Choose a tag to compare
  • Breaking changes
    • None
  • New features
  • Bug fixes
    • Tortoise Image Diff no longer shows for text files
  • Other changes
    • Lots of improvements to the online documentation

Single Hpp File

28 Jun 17:36
Compare
Choose a tag to compare
  • Breaking changes
    • None
  • New features
    • None
  • Bug fixes
    • Works on MinGW
  • Other changes
    • None

Single Hpp File

02 Jun 18:30
Compare
Choose a tag to compare

Single Hpp File

15 Apr 21:44
Compare
Choose a tag to compare

Single Hpp File

12 Apr 21:50
Compare
Choose a tag to compare
  • Breaking changes
    • None
  • New features
  • Bug fixes
    • Reporters will now launch correctly on cygwin, allowing failing tests to be fixed on this platform.
  • Other changes
    • None

Single Hpp File

07 Mar 07:21
Compare
Choose a tag to compare