6fcb458c63
While Splash has supported iOS since its early days, this change makes it possible to compile the iOS version as a Swift Package, using Xcode 11. The changes require us to not make the assumption that != macOS == Linux. (Also git ignore the new `.swiftpm` directory that SwiftPM now uses)
29 lines
694 B
Swift
29 lines
694 B
Swift
/**
|
|
* Splash
|
|
* Copyright (c) John Sundell 2019
|
|
* MIT license - see LICENSE.md
|
|
*/
|
|
|
|
import Foundation
|
|
import XCTest
|
|
|
|
/// Abstract base class for all Splash tests
|
|
class SplashTestCase: XCTestCase {
|
|
#if os(macOS)
|
|
func testHasLinuxVerificationTest() {
|
|
let concreteType = type(of: self)
|
|
|
|
guard concreteType != SyntaxHighlighterTestCase.self else {
|
|
return
|
|
}
|
|
|
|
guard concreteType != SplashTestCase.self else {
|
|
return
|
|
}
|
|
|
|
XCTAssertTrue(concreteType.testNames.contains("testAllTestsRunOnLinux"),
|
|
"\(concreteType) doesn't have a test that verifies that its tests run on Linux")
|
|
}
|
|
#endif
|
|
}
|