Skip to content

Commit

Permalink
🐧 Enable test discovery on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
phatblat committed May 6, 2020
1 parent d6ebd43 commit 940f772
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ build: copyRunResources
swift build $(SWIFTC_FLAGS) $(LINKER_FLAGS)

test: build copyTestResources
swift test
swift test --enable-test-discovery

copyRunResources:
mkdir -p ${RUN_RESOURCES_DIRECTORY}
Expand Down
8 changes: 1 addition & 7 deletions Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
import XCTest

import SwiftUI_WebViewTests

var tests = [XCTestCaseEntry]()
tests += SwiftUI_WebViewTests.allTests()
XCTMain(tests)
fatalError("Running tests like this is unsupported. Run the tests again by using `swift test --enable-test-discovery`")
4 changes: 0 additions & 4 deletions Tests/WebViewTests/WebViewTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,4 @@ final class WebViewTests: XCTestCase {
func testExample() {
XCTAssertNotNil(WebView().webView)
}

static var allTests = [
("testExample", testExample),
]
}
9 changes: 0 additions & 9 deletions Tests/WebViewTests/XCTestManifests.swift

This file was deleted.

0 comments on commit 940f772

Please sign in to comment.