vapor/api-template

Missing/Empty LinuxMain.swift

Closed this issue · 2 comments

The LinuxMain.swift inside Tests folder is empty . Even for the "testNothing" example, it is useful to have an example on what this file should look like, since it is a little misleading seeing it empty (one assumes it should be this way).

Options I know of would be either using swift test --generate-linuxmain or creating the file based on the same file from branch vapor-2 or vapor-til's example

I just added the following to LinuxMain.swift, which would reflect the content of AppTests.swift

import XCTest
@testable import AppTests

XCTMain([testCase(AppTests.allTests)])

Maybe that helps someone who is looking for a quickfix

0xTim commented

Closing due to inactivity - feel free to reopen!