Skip to content

Commit

Permalink
Another attempt to limit tests on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
mluisbrown committed Oct 18, 2020
1 parent ca06ed0 commit 3a44941
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 237 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Expand Up @@ -45,5 +45,4 @@ jobs:
- name: Test via SwiftPM
run: |
swift --version
swift build --target ComposableArchitecture
swift test
swift test --enable-test-discovery
5 changes: 3 additions & 2 deletions Package.swift
Expand Up @@ -71,5 +71,6 @@ let package = Package(
)

#if os(Linux)
package.targets.removeAll(where: { $0.type == .test && $0.name != "ComposableArchitectureTests" })
#endif
package.products.removeAll(where: { $0.name != "ComposableArchitecture" })
package.targets.removeAll(where: { $0.name != "ComposableArchitecture" && $0.name != "ComposableArchitectureTests" })
#endif
225 changes: 0 additions & 225 deletions Tests/ComposableArchitectureTests/XCTestManifests.swift

This file was deleted.

10 changes: 2 additions & 8 deletions Tests/LinuxMain.swift
@@ -1,8 +1,2 @@
import XCTest

import ComposableArchitectureTests

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

XCTMain(tests)
// LinuxMain.swift
fatalError("Run the tests with `swift test --enable-test-discovery`.")

0 comments on commit 3a44941

Please sign in to comment.