-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #500 from petester42/tests
Adds test support without cocoapods
- Loading branch information
Showing
84 changed files
with
3,793 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,5 +26,5 @@ DerivedData | |
# | ||
# Pods/ | ||
|
||
Carthage | ||
# Carthage | ||
Charts.framework.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github "facebook/ios-snapshot-test-case" ~> 2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
18
Charts/Carthage/Checkouts/ios-snapshot-test-case/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
46
Charts/Carthage/Checkouts/ios-snapshot-test-case/CHANGELOG.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
1 change: 1 addition & 0 deletions
1
Charts/Carthage/Checkouts/ios-snapshot-test-case/Carthage/Build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../Carthage/Build |
31 changes: 31 additions & 0 deletions
31
Charts/Carthage/Checkouts/ios-snapshot-test-case/FBSnapshotTestCase.podspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.