ソースを参照

Update format

onevcat 7 ヶ月 前
コミット
e573674ab3
2 ファイル変更10 行追加15 行削除
  1. 3 7
      CLAUDE.md
  2. 7 8
      Tests/KingfisherTests/ImageViewExtensionTests.swift

+ 3 - 7
CLAUDE.md

@@ -20,18 +20,14 @@ bundle install
 # Run all tests across platforms (iOS, macOS, tvOS, watchOS)
 bundle exec fastlane tests
 
-# Run specific platform tests (used in CI)
-bundle exec fastlane test_ci
+# Run specific platform tests
+bundle exec fastlane test destination:"platform=iOS Simulator,name=iPhone 16"
 
 # Build for specific platform
-bundle exec fastlane build_ci
+bundle exec fastlane build destination:"platform=iOS Simulator,name=iPhone 16"
 
 # Lint CocoaPods spec and Swift Package Manager
 bundle exec fastlane lint
-
-# Swift Package Manager (alternative)
-swift build
-swift test
 ```
 
 ### Release Process

+ 7 - 8
Tests/KingfisherTests/ImageViewExtensionTests.swift

@@ -823,15 +823,14 @@ class ImageViewExtensionTests: XCTestCase {
                 self.imageView.kf.setImage(with: url, options: options) { result in
                     XCTAssertNotNil(result.value?.image)
                     XCTAssertTrue(result.value!.cacheType == .disk)
+                    delay(2, block: {
+                        self.imageView.kf.setImage(with: url, options: options) { result in
+                            XCTAssertNotNil(result.value?.image)
+                            XCTAssertTrue(result.value!.cacheType == .none)
 
-                        delay(2, block: {
-                            self.imageView.kf.setImage(with: url, options: options) { result in
-                                XCTAssertNotNil(result.value?.image)
-                                XCTAssertTrue(result.value!.cacheType == .none)
-
-                                exp.fulfill()
-                            }
-                        })
+                            exp.fulfill()
+                        }
+                    })
                 }
             })
         }