Skip to content

Commit

Permalink
Merge pull request #10 from jeanetienne/unit-tests
Browse files Browse the repository at this point in the history
Unit tests
  • Loading branch information
jeanetienne authored Feb 10, 2019
2 parents 50a7bff + 26401bf commit 403a982
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
# Travis CI config for AssetResizer
language: swift
osx_image: xcode8.3
osx_image: xcode10.1
xcode_project: AssetResizer.xcodeproj

env:
global:
- PROJECT=AssetResizer.xcodeproj
- SCHEME=AssetResizer
- SDK=macosx10.12
- DESTINATION="arch=x86_64"

script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks
- xcodebuild -project "$PROJECT" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO test | xcpretty -c;
- xcodebuild -scheme "$SCHEME" test | xcpretty -c;

after_success:
- bash <(curl -s https://codecov.io/bash)
Expand Down
6 changes: 5 additions & 1 deletion Tests/AssetResizerTests/AssetResizerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ import XCTest

@testable import AssetResizer

final class AssetResizerTests: XCTestCase {}
final class AssetResizerTests: XCTestCase {

static let identifier = "net.jeanetienne.AssetResizerTests"

}
2 changes: 1 addition & 1 deletion Tests/AssetResizerTests/Tools/URL+TempFolder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ extension URL {

static var cacheFolder: URL = { () -> URL in
let folderPath = FileManager.default.urls(for: .cachesDirectory, in: .userDomainMask)[0]
return folderPath.appendingPathComponent(Bundle.tests.bundleIdentifier!)
return folderPath.appendingPathComponent(AssetResizerTests.identifier)
}()

}

0 comments on commit 403a982

Please sign in to comment.