2019-03-15 20:24:53 +01:00
|
|
|
/**
|
|
|
|
* Splash
|
|
|
|
* Copyright (c) John Sundell 2019
|
|
|
|
* MIT license - see LICENSE.md
|
|
|
|
*/
|
|
|
|
|
2018-08-27 00:14:48 +02:00
|
|
|
import Foundation
|
|
|
|
import XCTest
|
|
|
|
|
|
|
|
/// Abstract base class for all Splash tests
|
|
|
|
class SplashTestCase: XCTestCase {
|
|
|
|
#if !os(Linux)
|
|
|
|
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
|
|
|
|
}
|