Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Commit

Permalink
Guess not
Browse files Browse the repository at this point in the history
  • Loading branch information
pvzig committed Mar 6, 2019
1 parent 1ad14f0 commit 245d709
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 3 deletions.
8 changes: 8 additions & 0 deletions LinuxMain.swift
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,8 @@
import XCTest

import SlackKitTests

var tests = [XCTestCaseEntry]()
tests += SlackKitTests.__allTests()

XCTMain(tests)
2 changes: 0 additions & 2 deletions SlackKit.xcodeproj/project.pbxproj
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@
26D4E6292220731800A67B67 /* rtm.connect.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = rtm.connect.json; sourceTree = "<group>"; }; 26D4E6292220731800A67B67 /* rtm.connect.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = rtm.connect.json; sourceTree = "<group>"; };
26D4E62A2220731800A67B67 /* file.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = file.json; sourceTree = "<group>"; }; 26D4E62A2220731800A67B67 /* file.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = file.json; sourceTree = "<group>"; };
26D4E6362220733F00A67B67 /* SKCoreTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SKCoreTests.swift; sourceTree = "<group>"; }; 26D4E6362220733F00A67B67 /* SKCoreTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SKCoreTests.swift; sourceTree = "<group>"; };
26D4E6372220733F00A67B67 /* XCTestManifests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = XCTestManifests.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */ /* End PBXFileReference section */


/* Begin PBXFrameworksBuildPhase section */ /* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -803,7 +802,6 @@
26D4E6112220719D00A67B67 /* SlackKitTests */ = { 26D4E6112220719D00A67B67 /* SlackKitTests */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
26D4E6372220733F00A67B67 /* XCTestManifests.swift */,
26D4E61A222072BC00A67B67 /* SlackKit */, 26D4E61A222072BC00A67B67 /* SlackKit */,
26D4E61B222072C600A67B67 /* SKClient */, 26D4E61B222072C600A67B67 /* SKClient */,
26D4E61C222072D100A67B67 /* SKCore */, 26D4E61C222072D100A67B67 /* SKCore */,
Expand Down
31 changes: 31 additions & 0 deletions SlackKitTests/XCTestManifests.swift
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,31 @@
import XCTest

extension SKClientTests {
static let __allTests = [
("testMemberJoinedChannel", testMemberJoinedChannel),
("testMemberLeftChannel", testMemberLeftChannel),
]
}

extension SKCoreTests {
static let __allTests = [
("testChannel", testChannel),
("testConversation", testConversation),
("testEvents", testEvents),
("testFile", testFile),
("testGroup", testGroup),
("testIm", testIm),
("testMpim", testMpim),
("testUser", testUser),
("testUserGroup", testUserGroup),
]
}

#if !os(macOS)
public func __allTests() -> [XCTestCaseEntry] {
return [
testCase(SKClientTests.__allTests),
testCase(SKCoreTests.__allTests),
]
}
#endif
1 change: 0 additions & 1 deletion azure-pipelines.yml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -81,5 +81,4 @@ jobs:
# Swift build # Swift build
$(Build.SourcesDirectory)/swift-4.2.1-RELEASE-ubuntu16.04/usr/bin/swift build $(Build.SourcesDirectory)/swift-4.2.1-RELEASE-ubuntu16.04/usr/bin/swift build
# Swift test # Swift test
$(Build.SourcesDirectory)/swift-4.2.1-RELEASE-ubuntu16.04/usr/bin/swift test --generate-linuxmain
$(Build.SourcesDirectory)/swift-4.2.1-RELEASE-ubuntu16.04/usr/bin/swift test $(Build.SourcesDirectory)/swift-4.2.1-RELEASE-ubuntu16.04/usr/bin/swift test

0 comments on commit 245d709

Please sign in to comment.