Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.43 KB

CHANGELOG.md

File metadata and controls

48 lines (38 loc) · 1.43 KB

Version 2.0.0

19 Jul 2022

Breaking Changes:

  • Stop reporting the object type. For example,
try Approvals.verify(CGRect(x: 5, y: 10, width: 100, height: 200))

will produce these changes in your .approved. files

- CGRect: (5.0, 10.0, 100.0, 200.0)
+ (5.0, 10.0, 100.0, 200.0)

Fixes:

  • Works with Xcode 13.3. Changes in Xcode 13.3's call stack caused this issue.
  • Skip reporters that can't handle the file type. So if you have an image artifact, Approvals.Swift will use the first reporter that can show image differences.
  • Fix iOS results watcher to support project paths with spaces.

Features:

  • verifyAll improvements:
    • Now has an optional header to print above the array.
    • A new verifyAll takes a labeler closure to format each line. For example, here's a way to make lists without indices:
  try Approvals.verifyAll(header: "grocery list", groceries) { $0 }
  • For iOS tests, ApprovalTests will print a reminder to turn on the watcher.
  • SimpleLogger: an easy way to log and do performance profiling.
  • UIKitApprovals.verify for verifying UIViews and rendered UIViewControllers.
  • New reporters:
    • ReportMoveCommandToConsole
    • Make ReportByOpeningReceivedFile available on iOS, not just macOS

Verifiable

Approvals now offers a Verifiable interface that understands approvals.

Version 1.0.0

16 Jan 2022

  • Initial release