Permalink
Browse files

Revert "one test"

This reverts commit 7afda04.
  • Loading branch information...
1 parent 574da28 commit 2b38ceae045523c942896e3d9b2cb50366bcb00c Chris Smith committed Jan 14, 2017
Showing with 114 additions and 14 deletions.
  1. +1 −1 .travis.yml
  2. +101 −0 Hint.xcodeproj/xcshareddata/xcschemes/HintTests.xcscheme
  3. +12 −13 HintTests/HintTests.swift
View
@@ -10,4 +10,4 @@ osx_image: xcode8.2
xcode_sdk: macosx10.12
script:
-- xcodebuild clean build test -project Hint.xcodeproj -scheme Hint CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
+- xcodebuild clean build test -project Hint.xcodeproj -scheme HintTests CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ LastUpgradeVersion = "0820"
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
+ <BuildActionEntries>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "YES"
+ buildForProfiling = "YES"
+ buildForArchiving = "YES"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "4BD7DC4E1E1383E500237385"
+ BuildableName = "Hint.app"
+ BlueprintName = "Hint"
+ ReferencedContainer = "container:Hint.xcodeproj">
+ </BuildableReference>
+ </BuildActionEntry>
+ </BuildActionEntries>
+ </BuildAction>
+ <TestAction
+ buildConfiguration = "Debug"
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ shouldUseLaunchSchemeArgsEnv = "YES">
+ <Testables>
+ <TestableReference
+ skipped = "NO">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "4BD7DC5D1E1383E500237385"
+ BuildableName = "HintTests.xctest"
+ BlueprintName = "HintTests"
+ ReferencedContainer = "container:Hint.xcodeproj">
+ </BuildableReference>
+ </TestableReference>
+ </Testables>
+ <MacroExpansion>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "4BD7DC4E1E1383E500237385"
+ BuildableName = "Hint.app"
+ BlueprintName = "Hint"
+ ReferencedContainer = "container:Hint.xcodeproj">
+ </BuildableReference>
+ </MacroExpansion>
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </TestAction>
+ <LaunchAction
+ buildConfiguration = "Debug"
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ launchStyle = "0"
+ useCustomWorkingDirectory = "NO"
+ ignoresPersistentStateOnLaunch = "NO"
+ debugDocumentVersioning = "YES"
+ debugServiceExtension = "internal"
+ allowLocationSimulation = "YES">
+ <BuildableProductRunnable
+ runnableDebuggingMode = "0">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "4BD7DC4E1E1383E500237385"
+ BuildableName = "Hint.app"
+ BlueprintName = "Hint"
+ ReferencedContainer = "container:Hint.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </LaunchAction>
+ <ProfileAction
+ buildConfiguration = "Release"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ debugDocumentVersioning = "YES">
+ <BuildableProductRunnable
+ runnableDebuggingMode = "0">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "4BD7DC4E1E1383E500237385"
+ BuildableName = "Hint.app"
+ BlueprintName = "Hint"
+ ReferencedContainer = "container:Hint.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>
View
@@ -11,27 +11,26 @@ import XCTest
class HintTests: XCTestCase {
- var scheduler: Scheduler!
-
override func setUp() {
super.setUp()
-
- scheduler = Scheduler()
+ // Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDown() {
+ // Put teardown code here. This method is called after the invocation of each test method in the class.
super.tearDown()
}
- func testSchedule() {
-
- let expect = expectation(description: "schedule")
- scheduler.schedule(1, block: { () -> Void in
- expect.fulfill()
- })
-
- waitForExpectations(timeout: 5) { error in
- XCTAssertNil(error)
+ func testExample() {
+ // This is an example of a functional test case.
+ // Use XCTAssert and related functions to verify your tests produce the correct results.
+ }
+
+ func testPerformanceExample() {
+ // This is an example of a performance test case.
+ self.measure {
+ // Put the code you want to measure the time of here.
}
}
+
}

0 comments on commit 2b38cea

Please sign in to comment.