8e7599150f
This change adds a new command line tool to the Splash family: `SplashMarkdown`. It’s an adapted version of the tool that I’ve been using for months to publish every article on Swift by Sundell, and works by replacing all code blocks within a Markdown file. Adding this will hopefully make Splash even easier to use, without the need for writing custom tooling, or to manually replace each code block within a Markdown file with a “splashed” version.
29 lines
695 B
Swift
29 lines
695 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(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
|
|
}
|