From 7b13075c1d0b8d5144c79ef3249dabf65a1cc7a5 Mon Sep 17 00:00:00 2001 From: Pengwius Date: Thu, 25 Mar 2021 23:59:23 +0100 Subject: [PATCH] Tests --- .DS_Store | Bin 6148 -> 6148 bytes Package.swift | 28 ------- Sources/wulkanowy-ios/wulkanowy_ios.swift | 3 - Tests/LinuxMain.swift | 7 -- .../wulkanowy-iosTests/XCTestManifests.swift | 9 -- .../wulkanowy_iosTests.swift | 15 ---- .../xcode/xcshareddata/xcschemes/Sdk.xcscheme | 67 +++++++++++++++ wulkanowy.xcodeproj/project.pbxproj | 12 ++- .../xcshareddata/xcschemes/wulkanowy.xcscheme | 78 ++++++++++++++++++ .../xcschemes/wulkanowyTests.xcscheme | 52 ++++++++++++ .../contents.xcworkspacedata | 3 - wulkanowyTests/wulkanowyTests.swift | 34 -------- 12 files changed, 205 insertions(+), 103 deletions(-) delete mode 100644 Package.swift delete mode 100644 Sources/wulkanowy-ios/wulkanowy_ios.swift delete mode 100644 Tests/LinuxMain.swift delete mode 100644 Tests/wulkanowy-iosTests/XCTestManifests.swift delete mode 100644 Tests/wulkanowy-iosTests/wulkanowy_iosTests.swift create mode 100644 sdk/.swiftpm/xcode/xcshareddata/xcschemes/Sdk.xcscheme create mode 100644 wulkanowy.xcodeproj/xcshareddata/xcschemes/wulkanowy.xcscheme create mode 100644 wulkanowy.xcodeproj/xcshareddata/xcschemes/wulkanowyTests.xcscheme delete mode 100644 wulkanowyTests/wulkanowyTests.swift diff --git a/.DS_Store b/.DS_Store index 11de6050db98d706671e4edd3fbb5aff04e519b8..e7a0ec505e7ac575fb1944a8fefa2ac8529610b0 100644 GIT binary patch delta 61 zcmZoMXfc@J&&a(oU^g=(_hufJ6O4@FlNYiHv+FWsGUPK9Pkzp-H2FLmE9aX3V8Fnz O`6BBJ#?9;;fB6Ap;}(nn delta 32 ocmZoMXfc@J&&ahgU^g=(*Jd7;6O5ac*q$;@Z1CI6&heKY0IFCDmjD0& diff --git a/Package.swift b/Package.swift deleted file mode 100644 index 788fcd7..0000000 --- a/Package.swift +++ /dev/null @@ -1,28 +0,0 @@ -// swift-tools-version:5.3 -// The swift-tools-version declares the minimum version of Swift required to build this package. - -import PackageDescription - -let package = Package( - name: "wulkanowy-ios", - products: [ - // Products define the executables and libraries a package produces, and make them visible to other packages. - .library( - name: "wulkanowy-ios", - targets: ["wulkanowy-ios"]), - ], - dependencies: [ - // Dependencies declare other packages that this package depends on. - // .package(url: /* package url */, from: "1.0.0"), - ], - targets: [ - // Targets are the basic building blocks of a package. A target can define a module or a test suite. - // Targets can depend on other targets in this package, and on products in packages this package depends on. - .target( - name: "wulkanowy-ios", - dependencies: []), - .testTarget( - name: "wulkanowy-iosTests", - dependencies: ["wulkanowy-ios"]), - ] -) diff --git a/Sources/wulkanowy-ios/wulkanowy_ios.swift b/Sources/wulkanowy-ios/wulkanowy_ios.swift deleted file mode 100644 index 010bf46..0000000 --- a/Sources/wulkanowy-ios/wulkanowy_ios.swift +++ /dev/null @@ -1,3 +0,0 @@ -struct wulkanowy_ios { - var text = "Hello, World!" -} diff --git a/Tests/LinuxMain.swift b/Tests/LinuxMain.swift deleted file mode 100644 index f2308ab..0000000 --- a/Tests/LinuxMain.swift +++ /dev/null @@ -1,7 +0,0 @@ -import XCTest - -import wulkanowy_iosTests - -var tests = [XCTestCaseEntry]() -tests += wulkanowy_iosTests.allTests() -XCTMain(tests) diff --git a/Tests/wulkanowy-iosTests/XCTestManifests.swift b/Tests/wulkanowy-iosTests/XCTestManifests.swift deleted file mode 100644 index a8158fb..0000000 --- a/Tests/wulkanowy-iosTests/XCTestManifests.swift +++ /dev/null @@ -1,9 +0,0 @@ -import XCTest - -#if !canImport(ObjectiveC) -public func allTests() -> [XCTestCaseEntry] { - return [ - testCase(wulkanowy_iosTests.allTests), - ] -} -#endif diff --git a/Tests/wulkanowy-iosTests/wulkanowy_iosTests.swift b/Tests/wulkanowy-iosTests/wulkanowy_iosTests.swift deleted file mode 100644 index a8ff05a..0000000 --- a/Tests/wulkanowy-iosTests/wulkanowy_iosTests.swift +++ /dev/null @@ -1,15 +0,0 @@ -import XCTest -@testable import wulkanowy_ios - -final class wulkanowy_iosTests: XCTestCase { - func testExample() { - // This is an example of a functional test case. - // Use XCTAssert and related functions to verify your tests produce the correct - // results. - XCTAssertEqual(wulkanowy_ios().text, "Hello, World!") - } - - static var allTests = [ - ("testExample", testExample), - ] -} diff --git a/sdk/.swiftpm/xcode/xcshareddata/xcschemes/Sdk.xcscheme b/sdk/.swiftpm/xcode/xcshareddata/xcschemes/Sdk.xcscheme new file mode 100644 index 0000000..af992ad --- /dev/null +++ b/sdk/.swiftpm/xcode/xcshareddata/xcschemes/Sdk.xcscheme @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wulkanowy.xcodeproj/project.pbxproj b/wulkanowy.xcodeproj/project.pbxproj index b81689e..bce5cc4 100644 --- a/wulkanowy.xcodeproj/project.pbxproj +++ b/wulkanowy.xcodeproj/project.pbxproj @@ -21,6 +21,8 @@ 5C89C8F525EA6AA4000B5816 /* licenses.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C89C8F425EA6AA4000B5816 /* licenses.swift */; }; 5C89C90625EA7996000B5816 /* SwiftUIEKtensions in Frameworks */ = {isa = PBXBuildFile; productRef = 5C89C90525EA7996000B5816 /* SwiftUIEKtensions */; }; 5C9B6F4925D6C08D00C3F5F5 /* Sdk in Frameworks */ = {isa = PBXBuildFile; productRef = 5C9B6F4825D6C08D00C3F5F5 /* Sdk */; }; + 5CB39737260D4BE200349B0D /* wulkanowyTests in Resources */ = {isa = PBXBuildFile; fileRef = 5CB39735260D4BE200349B0D /* wulkanowyTests */; }; + 5CB39738260D4BE200349B0D /* LinuxMain.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5CB39736260D4BE200349B0D /* LinuxMain.swift */; }; 5CB9907225EE4A3200AA405C /* CustomButtonView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5CB9907125EE4A3200AA405C /* CustomButtonView.swift */; }; 5CB9907625EE4A3B00AA405C /* OnboardingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5CB9907525EE4A3B00AA405C /* OnboardingView.swift */; }; 5CC2EAA525E516F100B6183E /* dashboard.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5CC2EAA425E516F100B6183E /* dashboard.swift */; }; @@ -31,7 +33,6 @@ F4C6D90A2544E17400F8903A /* LoginView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4C6D9092544E17400F8903A /* LoginView.swift */; }; F4C6D90C2544E17500F8903A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F4C6D90B2544E17500F8903A /* Assets.xcassets */; }; F4C6D90F2544E17500F8903A /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F4C6D90E2544E17500F8903A /* Preview Assets.xcassets */; }; - F4C6D91A2544E17500F8903A /* wulkanowyTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4C6D9192544E17500F8903A /* wulkanowyTests.swift */; }; F4C6D9252544E17500F8903A /* wulkanowyUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4C6D9242544E17500F8903A /* wulkanowyUITests.swift */; }; /* End PBXBuildFile section */ @@ -89,6 +90,8 @@ 5C89C8F425EA6AA4000B5816 /* licenses.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = licenses.swift; sourceTree = ""; }; 5C9B6E4925D6ADFB00C3F5F5 /* NetworkExtension.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = NetworkExtension.framework; path = System/Library/Frameworks/NetworkExtension.framework; sourceTree = SDKROOT; }; 5C9B6F4525D6C06D00C3F5F5 /* Sdk */ = {isa = PBXFileReference; lastKnownFileType = folder; path = Sdk; sourceTree = ""; }; + 5CB39735260D4BE200349B0D /* wulkanowyTests */ = {isa = PBXFileReference; lastKnownFileType = folder; name = wulkanowyTests; path = "../../../../../Library/Mobile Documents/com~apple~CloudDocs/.Trash/Tests/wulkanowyTests"; sourceTree = ""; }; + 5CB39736260D4BE200349B0D /* LinuxMain.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = LinuxMain.swift; path = "../../../../../Library/Mobile Documents/com~apple~CloudDocs/.Trash/Tests/LinuxMain.swift"; sourceTree = ""; }; 5CB9907125EE4A3200AA405C /* CustomButtonView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = CustomButtonView.swift; path = ../../../../../../Shared/CustomButtonView.swift; sourceTree = ""; }; 5CB9907525EE4A3B00AA405C /* OnboardingView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = OnboardingView.swift; path = ../../../../../../Onboarding/OnboardingView.swift; sourceTree = ""; }; 5CC2EAA425E516F100B6183E /* dashboard.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = dashboard.swift; sourceTree = ""; }; @@ -102,7 +105,6 @@ F4C6D90E2544E17500F8903A /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; F4C6D9102544E17500F8903A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; F4C6D9152544E17500F8903A /* wulkanowyTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = wulkanowyTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - F4C6D9192544E17500F8903A /* wulkanowyTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = wulkanowyTests.swift; sourceTree = ""; }; F4C6D91B2544E17500F8903A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; F4C6D9202544E17500F8903A /* wulkanowyUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = wulkanowyUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; F4C6D9242544E17500F8903A /* wulkanowyUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = wulkanowyUITests.swift; sourceTree = ""; }; @@ -271,7 +273,8 @@ F4C6D9182544E17500F8903A /* wulkanowyTests */ = { isa = PBXGroup; children = ( - F4C6D9192544E17500F8903A /* wulkanowyTests.swift */, + 5CB39736260D4BE200349B0D /* LinuxMain.swift */, + 5CB39735260D4BE200349B0D /* wulkanowyTests */, F4C6D91B2544E17500F8903A /* Info.plist */, ); path = wulkanowyTests; @@ -413,6 +416,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 5CB39737260D4BE200349B0D /* wulkanowyTests in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -454,7 +458,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - F4C6D91A2544E17500F8903A /* wulkanowyTests.swift in Sources */, + 5CB39738260D4BE200349B0D /* LinuxMain.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/wulkanowy.xcodeproj/xcshareddata/xcschemes/wulkanowy.xcscheme b/wulkanowy.xcodeproj/xcshareddata/xcschemes/wulkanowy.xcscheme new file mode 100644 index 0000000..0bde8c0 --- /dev/null +++ b/wulkanowy.xcodeproj/xcshareddata/xcschemes/wulkanowy.xcscheme @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wulkanowy.xcodeproj/xcshareddata/xcschemes/wulkanowyTests.xcscheme b/wulkanowy.xcodeproj/xcshareddata/xcschemes/wulkanowyTests.xcscheme new file mode 100644 index 0000000..5d282c7 --- /dev/null +++ b/wulkanowy.xcodeproj/xcshareddata/xcschemes/wulkanowyTests.xcscheme @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/wulkanowy.xcworkspace/contents.xcworkspacedata b/wulkanowy.xcworkspace/contents.xcworkspacedata index 9d722e0..7361111 100644 --- a/wulkanowy.xcworkspace/contents.xcworkspacedata +++ b/wulkanowy.xcworkspace/contents.xcworkspacedata @@ -4,7 +4,4 @@ - - diff --git a/wulkanowyTests/wulkanowyTests.swift b/wulkanowyTests/wulkanowyTests.swift deleted file mode 100644 index c88abd1..0000000 --- a/wulkanowyTests/wulkanowyTests.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// wulkanowyTests.swift -// wulkanowyTests -// -// Created by MikoĊ‚aj on 25/10/2020. -// - -import XCTest -@testable import wulkanowy - -@available (iOS 14, macOS 11, watchOS 7, tvOS 14, *) -class wulkanowyTests: XCTestCase { - - override func setUpWithError() throws { - // Put setup code here. This method is called before the invocation of each test method in the class. - } - - override func tearDownWithError() throws { - // Put teardown code here. This method is called after the invocation of each test method in the class. - } - - func testExample() throws { - // This is an example of a functional test case. - // Use XCTAssert and related functions to verify your tests produce the correct results. - } - - 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. - } - } - -}