diff --git a/Tests/LinuxMain.swift b/Tests/LinuxMain.swift index f87c95114..dc3336c31 100644 --- a/Tests/LinuxMain.swift +++ b/Tests/LinuxMain.swift @@ -20,13 +20,14 @@ XCTMain([ testCase(IntegrationTests.allTests), testCase(LineLengthConfigurationTests.allTests), testCase(LineLengthRuleTests.allTests), + testCase(LinterCacheTests.allTests), testCase(ReporterTests.allTests), testCase(RuleConfigurationsTests.allTests), - testCase(RuleTests.allTests), testCase(RulesTests.allTests), + testCase(RuleTests.allTests), testCase(SourceKitCrashTests.allTests), testCase(TrailingCommaRuleTests.allTests), testCase(VerticalWhitespaceRuleTests.allTests), - testCase(YamlSwiftLintTests.allTests), - testCase(YamlParserTests.allTests) + testCase(YamlParserTests.allTests), + testCase(YamlSwiftLintTests.allTests) ]) diff --git a/Tests/SwiftLintFrameworkTests/LinterCacheTests.swift b/Tests/SwiftLintFrameworkTests/LinterCacheTests.swift index d4636a0ae..5b5ab250f 100644 --- a/Tests/SwiftLintFrameworkTests/LinterCacheTests.swift +++ b/Tests/SwiftLintFrameworkTests/LinterCacheTests.swift @@ -87,3 +87,18 @@ class LinterCacheTests: XCTestCase { XCTAssertNil(cachedViolations) } } + +extension LinterCacheTests { + static var allTests: [(String, (LinterCacheTests) -> () throws -> Void)] { + return [ + ("testInitThrowsWhenUsingDifferentVersion", testInitThrowsWhenUsingDifferentVersion), + ("testInitThrowsWhenUsingInvalidCacheFormat", testInitThrowsWhenUsingInvalidCacheFormat), + ("testInitThrowsWhenUsingDifferentConfiguration", testInitThrowsWhenUsingDifferentConfiguration), + ("testInitSucceeds", testInitSucceeds), + ("testInitSucceedsWithConfigurationHash", testInitSucceedsWithConfigurationHash), + ("testParsesViolations", testParsesViolations), + ("testParsesViolationsWithModifiedHash", testParsesViolationsWithModifiedHash), + ("testParsesViolationsWithEmptyViolations", testParsesViolationsWithEmptyViolations) + ] + } +}