Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds test support without cocoapods #500

Merged
merged 1 commit into from
Oct 25, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ DerivedData
#
# Pods/

Carthage
# Carthage
Charts.framework.zip
1 change: 1 addition & 0 deletions Charts/Cartfile.private
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github "facebook/ios-snapshot-test-case" ~> 2.0
1 change: 1 addition & 0 deletions Charts/Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github "facebook/ios-snapshot-test-case" "2.0.5"
18 changes: 18 additions & 0 deletions Charts/Carthage/Checkouts/ios-snapshot-test-case/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.DS_Store
*/build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
profile
*.moved-aside
DerivedData
.idea/
*.hmap
*.xccheckout
Pods
6 changes: 6 additions & 0 deletions Charts/Carthage/Checkouts/ios-snapshot-test-case/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: objective-c
osx_image: xcode7
before_script:
- gem install cocoapods -v 0.37.2 --no-ri --no-rdoc
script:
./build.sh
46 changes: 46 additions & 0 deletions Charts/Carthage/Checkouts/ios-snapshot-test-case/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Change Log

All notable changes to this project will be documented in this file.

## 2.0.5

- Swift 2.0 (#111, #120) (Thanks to @pietbrauer and @grantjk)
- Fix pod spec by disabling bitcode (#115) (Thanks to @soleares)
- Fix for incorrect errors with multiple suffixes (#119) (Thanks to @Grubas7)
- Support for Model and OS in image names (#121 thanks to @esttorhe)

## 2.0.4

- Support loading reference images from the test bundle (#104) (Thanks to @yiding)
- Fix for retina tolerance comparisons (#107)

## 2.0.3

- New property added `usesDrawViewHierarchyInRect` to handle cases like `UIVisualEffect` (#70), `UIAppearance` (#91) and Size Classes (#92) (#100)

## 2.0.2

- Fix for retina comparisons (#96)

## 2.0.1

- Allow usage of Objective-C subspec only, for projects supporting iOS 7 (#93) (Thanks to @x2on)

## 2.0.0

- Approximate comparison (#88) (Thanks to @nap-sam-dean)
- Swift support (#87) (Thanks to @pietbrauer)

## 1.8.1

### Fixed

- Prevent mangling of C function names when compiled with a C++ compiler. (#79)

## 1.8.0

### Changed

- The default directories for snapshots images are now **ReferenceImages_32** (32bit) and **ReferenceImages_64** (64bit) and the suffix depends on the architecture when the test is running. (#77)
- If a test fails for a given suffix, it will try to load and compare all other suffixes before failing.
- Added assertion on setRecordMode. (#76)
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Pod::Spec.new do |s|
s.name = "FBSnapshotTestCase"
s.version = "2.0.5"
s.summary = "Snapshot view unit tests for iOS"
s.description = <<-DESC
A "snapshot test case" takes a configured UIView or CALayer
and uses the renderInContext: method to get an image snapshot
of its contents. It compares this snapshot to a "reference image"
stored in your source code repository and fails the test if the
two images don't match.
DESC
s.homepage = "https://github.com/facebook/ios-snapshot-test-case"
s.license = 'BSD'
s.author = 'Facebook'
s.source = { :git => "https://github.com/facebook/ios-snapshot-test-case.git",
:tag => s.version.to_s }
s.platform = :ios, '7.0'
s.requires_arc = true
s.framework = 'XCTest'
s.pod_target_xcconfig = { 'ENABLE_BITCODE' => 'NO' }
s.public_header_files = ['FBSnapshotTestCase/FBSnapshotTestCase.h', 'FBSnapshotTestCase/FBSnapshotTestCasePlatform.h']
s.private_header_files = ['FBSnapshotTestCase/FBSnapshotTestController.h', 'FBSnapshotTestCase/UIImage+Compare.h', 'FBSnapshotTestCase/UIImage+Diff.h']
s.default_subspecs = 'SwiftSupport'
s.subspec 'Core' do |cs|
cs.source_files = 'FBSnapshotTestCase/**/*.{h,m}'
end
s.subspec 'SwiftSupport' do |cs|
cs.dependency 'FBSnapshotTestCase/Core'
cs.source_files = 'FBSnapshotTestCase/**/*.swift'
end
end
Loading