mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
run LinterCacheTests on Linux
This commit is contained in:
@@ -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)
|
||||
])
|
||||
|
||||
@@ -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)
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user