guides/LinuxMain.md
LinuxMain.swift for all my testsFor all test cases generates allTests static variable and passes all of them as XCTestCaseEntry to XCTMain. Run with --args testimports='import MyTests' parameter to import test modules.
disableTests allows you to disable the whole test case.import XCTest
//testimports
extension AutoInjectionTests {
static var allTests = [
("testThatItResolvesAutoInjectedDependencies", testThatItResolvesAutoInjectedDependencies),
...
]
}
extension AutoWiringTests {
static var allTests = [
("testThatItCanResolveWithAutoWiring", testThatItCanResolveWithAutoWiring),
...
]
}
...
XCTMain([
testCase(AutoInjectionTests.allTests),
testCase(AutoWiringTests.allTests),
...
])