From 7034d9a6ca3ae4f4627cfb8741fb1c5071bf73b2 Mon Sep 17 00:00:00 2001 From: Nick Entin Date: Wed, 27 Sep 2023 23:21:32 -0700 Subject: [PATCH] Make how to install sections in README collapsible --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b0aa9279..e52498b7 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,8 @@ AccessibilitySnapshot makes it simple to add regression tests for accessibility By default, AccessibilitySnapshot uses [SnapshotTesting](https://github.com/pointfreeco/swift-snapshot-testing) to record snapshots and perform comparisons. The framework also includes support for using [iOSSnapshotTestCase](https://github.com/uber/ios-snapshot-test-case) as the snapshotting engine instead. Before setting up accessibility snapshot tests, make sure your project is set up for standard snapshot testing. Accessibility snapshot tests require that the test target has a host application. See the [Extensions](#extensions) section below for a list of other available snapshotting options. -### CocoaPods +
+

CocoaPods

Install with [CocoaPods](https://cocoapods.org) by adding the following to your `Podfile`: @@ -34,8 +35,10 @@ Alternatively, if you wish to use [iOSSnapshotTestCase](https://github.com/uber/ ```ruby pod 'AccessibilitySnapshot/iOSSnapshotTestCase' ``` +
-### Swift Package Manager +
+

Swift Package Manager

Install with [Swift Package Manager](https://swift.org/package-manager/) by adding the following to your `Package.swift`: @@ -71,14 +74,17 @@ targets: [ .testTarget(name: "MyAppTests", dependencies: ["MyApp", "FBSnapshotTestCase+Accessibility"]) ] ``` +
-### Carthage +
+

Carthage

Only the core accessibility parser (not the snapshot integration layers) can be installed via Carthage. To install AccessibilitySnapshotCore via [Carthage](https://github.com/Carthage/Carthage), add the following to your `Cartfile`: ```ogdl github "cashapp/AccessibilitySnapshot" ``` +
## Usage