Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test PR #1

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ jobs:
- name: Run Tests
run: |
xcodebuild -scheme "MyFramework" -resultBundlePath TestResults test
- uses: tbartelmess/[email protected]
if: always()
with:
results: TestResults.xcresult
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 14 additions & 2 deletions MyFramework.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
930EB3D0260C036D007E07DD /* MyFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 930EB3C6260C036D007E07DD /* MyFramework.framework */; };
930EB3D5260C036D007E07DD /* MyFrameworkTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 930EB3D4260C036D007E07DD /* MyFrameworkTests.swift */; };
930EB3D7260C036D007E07DD /* MyFramework.h in Headers */ = {isa = PBXBuildFile; fileRef = 930EB3C9260C036D007E07DD /* MyFramework.h */; settings = {ATTRIBUTES = (Public, ); }; };
930EB3E5260C05F2007E07DD /* TestClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 930EB3E4260C05F2007E07DD /* TestClass.swift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -29,6 +30,8 @@
930EB3CF260C036D007E07DD /* MyFrameworkTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MyFrameworkTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
930EB3D4260C036D007E07DD /* MyFrameworkTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyFrameworkTests.swift; sourceTree = "<group>"; };
930EB3D6260C036D007E07DD /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
930EB3E4260C05F2007E07DD /* TestClass.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestClass.swift; sourceTree = "<group>"; };
93D0D959260C4DFA004BE7D6 /* MyFramework.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = MyFramework.xctestplan; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -72,6 +75,7 @@
isa = PBXGroup;
children = (
930EB3C9260C036D007E07DD /* MyFramework.h */,
930EB3E4260C05F2007E07DD /* TestClass.swift */,
930EB3CA260C036D007E07DD /* Info.plist */,
);
path = MyFramework;
Expand All @@ -81,6 +85,7 @@
isa = PBXGroup;
children = (
930EB3D4260C036D007E07DD /* MyFrameworkTests.swift */,
93D0D959260C4DFA004BE7D6 /* MyFramework.xctestplan */,
930EB3D6260C036D007E07DD /* Info.plist */,
);
path = MyFrameworkTests;
Expand Down Expand Up @@ -147,6 +152,7 @@
TargetAttributes = {
930EB3C5260C036D007E07DD = {
CreatedOnToolsVersion = 12.4;
LastSwiftMigration = 1240;
};
930EB3CE260C036D007E07DD = {
CreatedOnToolsVersion = 12.4;
Expand Down Expand Up @@ -194,6 +200,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
930EB3E5260C05F2007E07DD /* TestClass.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -268,7 +275,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 11.1;
MACOSX_DEPLOYMENT_TARGET = 10.15;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -326,7 +333,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 11.1;
MACOSX_DEPLOYMENT_TARGET = 10.15;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = macosx;
Expand All @@ -340,6 +347,7 @@
930EB3DB260C036D007E07DD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEFINES_MODULE = YES;
Expand All @@ -357,13 +365,15 @@
PRODUCT_BUNDLE_IDENTIFIER = io.bartelmess.MyFramework;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
};
name = Debug;
};
930EB3DC260C036D007E07DD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEFINES_MODULE = YES;
Expand All @@ -388,6 +398,7 @@
930EB3DE260C036D007E07DD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = U4B7L7F7QJ;
Expand All @@ -406,6 +417,7 @@
930EB3DF260C036D007E07DD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = U4B7L7F7QJ;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1240"
version = "1.3">
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
Expand All @@ -27,6 +27,12 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:MyFrameworkTests/MyFramework.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
<Testables>
<TestableReference
skipped = "NO">
Expand Down
13 changes: 13 additions & 0 deletions MyFramework/TestClass.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// TestClass.swift
// MyFramework
//
// Created by Thomas Bartelmess on 2021-03-24.
//

import Foundation
class MyClass {
func myFunc() {
var test = "foo"
}
}
24 changes: 24 additions & 0 deletions MyFrameworkTests/MyFramework.xctestplan
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"configurations" : [
{
"id" : "D948A7F6-8EE1-4AA4-AE19-739F2043AD33",
"name" : "Configuration 1",
"options" : {

}
}
],
"defaultOptions" : {
"codeCoverage" : false
},
"testTargets" : [
{
"target" : {
"containerPath" : "container:MyFramework.xcodeproj",
"identifier" : "930EB3CE260C036D007E07DD",
"name" : "MyFrameworkTests"
}
}
],
"version" : 1
}
4 changes: 3 additions & 1 deletion MyFrameworkTests/MyFrameworkTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ class MyFrameworkTests: XCTestCase {
}

func testExample() throws {
XCTAssertTrue(false)
XCTAssertTrue(false, "Some Failure Text")
}



func testPerformanceExample() throws {
// This is an example of a performance test case.
self.measure {
Expand Down