Swiftpack.co - Swift Packages by approvals

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

Packages published by approvals

approvals/ApprovalTests.Swift v2.0.0
ApprovalTests for Swift, a powerful alternative to assertions
⭐️ 83
🕓 1 year ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
Enhanced printing of approval files including markdown support
1 year ago
## Breaking Changes: - Stop reporting the object type. For example, ```swift try Approvals.verify(CGRect(x: 5, y: 10, width: 100, height: 200)) ``` will produce these changes in your `.approved.` files ```diff - 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: ```swift 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](docs/reference/verifiable.md) that understands approvals.
Initial release
2 years ago
Version 1.0.0 ------------- _16 Jan 2022_ - Initial release
iOS macOS

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics