You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
babt@Swift-TestVM:~/$ mkdir NewTest
babt@Swift-TestVM:~/$ cd NewTest
babt@Swift-TestVM:~/NewTest$ swift package init --type library
Creating library package: NewTest
Creating Package.swift
Creating.gitignore
Creating Sources/
Creating Sources/NewTest.swift
Creating Tests/
Creating Tests/LinuxMain.swift
Creating Tests/NewTestTests/
Creating Tests/NewTestTests/NewTestTests.swift
babt@Swift-TestVM:~/NewTest$ pg Tests/LinuxMain.swift
import XCTest
@testable import NewTestTests
XCTMain([testCase(NewTestTests.allTests),])
babt@Swift-TestVM:~/NewTest$ pg Tests/NewTestTests/NewTestTests.swift
import XCTest
@testable import NewTest
classNewTestTests: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(NewTest().text,"Hello, World!")}staticvarallTests:[(String,(NewTestTests)->()throws->Void)]{return[("testExample", testExample),]}}
babt@Swift-TestVM:~/NewTest$ swift build
Compile Swift Module 'NewTest' (1 sources)
babt@Swift-TestVM:~/NewTest$ swift test
Compile Swift Module 'NewTestTests' (1 sources)
Linking ./.build/debug/NewTestTests.xctest
/home/babt/NewTest/Tests/LinuxMain.swift:2:18: warning: file 'LinuxMain.swift' is part of module 'NewTestTests'; ignoring import
@testable import NewTestTests
^
/home/babt/NewTest/Tests/LinuxMain.swift:5:15: error: module 'NewTestTests' hasno member named 'allTests'
testCase(NewTestTests.allTests),^~~~~~~~~~~~~~~~~~~~<unknown>:0: error: build had 1 command failures
error: exit(1):/home/babt/swift-DEVELOPMENT-SNAPSHOT-2016-07-29-a-ubuntu15.10/usr/bin/swift-build-tool -f /home/babt/NewTest/.build/debug.yaml test
babt@Swift-TestVM:~/NewTest$
I think this was broken when SE-0129 was implemented.
The text was updated successfully, but these errors were encountered:
Environment
swift-DEVELOPMENT-SNAPSHOT-2016-07-29-a-ubuntu15.10
Additional Detail from JIRA
md5: a194e5b31d8d8de5afe0acc9f0960554
Issue Description:
I think this was broken when SE-0129 was implemented.
The text was updated successfully, but these errors were encountered: