Skip to content

Commit

Permalink
Remove unnecessary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mbernson committed Jan 17, 2024
1 parent c22744c commit 3f27e5a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 51 deletions.
4 changes: 0 additions & 4 deletions TemplateApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
D5284F372B57C6B700BB32E7 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D5284F362B57C6B700BB32E7 /* Preview Assets.xcassets */; };
D5284F412B57C6B700BB32E7 /* TemplateAppTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5284F402B57C6B700BB32E7 /* TemplateAppTests.swift */; };
D5284F4B2B57C6B700BB32E7 /* TemplateAppUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5284F4A2B57C6B700BB32E7 /* TemplateAppUITests.swift */; };
D5284F4D2B57C6B700BB32E7 /* TemplateAppUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5284F4C2B57C6B700BB32E7 /* TemplateAppUITestsLaunchTests.swift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -43,7 +42,6 @@
D5284F402B57C6B700BB32E7 /* TemplateAppTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TemplateAppTests.swift; sourceTree = "<group>"; };
D5284F462B57C6B700BB32E7 /* TemplateAppUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TemplateAppUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
D5284F4A2B57C6B700BB32E7 /* TemplateAppUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TemplateAppUITests.swift; sourceTree = "<group>"; };
D5284F4C2B57C6B700BB32E7 /* TemplateAppUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TemplateAppUITestsLaunchTests.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -124,7 +122,6 @@
isa = PBXGroup;
children = (
D5284F4A2B57C6B700BB32E7 /* TemplateAppUITests.swift */,
D5284F4C2B57C6B700BB32E7 /* TemplateAppUITestsLaunchTests.swift */,
);
path = TemplateAppUITests;
sourceTree = "<group>";
Expand Down Expand Up @@ -277,7 +274,6 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
D5284F4D2B57C6B700BB32E7 /* TemplateAppUITestsLaunchTests.swift in Sources */,
D5284F4B2B57C6B700BB32E7 /* TemplateAppUITests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
8 changes: 1 addition & 7 deletions TemplateAppTests/TemplateAppTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@ final class TemplateAppTests: XCTestCase {
// Any test you write for XCTest can be annotated as throws and async.
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
}

func testPerformanceExample() throws {
// This is an example of a performance test case.
self.measure {
// Put the code you want to measure the time of here.
}
XCTAssertEqual(21 * 2, 42)
}

}
8 changes: 0 additions & 8 deletions TemplateAppUITests/TemplateAppUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,4 @@ final class TemplateAppUITests: XCTestCase {
// Use XCTAssert and related functions to verify your tests produce the correct results.
}

func testLaunchPerformance() throws {
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) {
// This measures how long it takes to launch your application.
measure(metrics: [XCTApplicationLaunchMetric()]) {
XCUIApplication().launch()
}
}
}
}
32 changes: 0 additions & 32 deletions TemplateAppUITests/TemplateAppUITestsLaunchTests.swift

This file was deleted.

0 comments on commit 3f27e5a

Please sign in to comment.