From 332c14761bfcd0a899c2fa9ff2bb399aa3f04848 Mon Sep 17 00:00:00 2001 From: Jeremy David Giesbrecht Date: Tue, 28 Mar 2017 20:39:41 -0600 Subject: [PATCH] More CI debugging. --- .../TrailingCommaRuleTests.swift | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Tests/SwiftLintFrameworkTests/TrailingCommaRuleTests.swift b/Tests/SwiftLintFrameworkTests/TrailingCommaRuleTests.swift index 923a7fb35..b1dbb4ff6 100644 --- a/Tests/SwiftLintFrameworkTests/TrailingCommaRuleTests.swift +++ b/Tests/SwiftLintFrameworkTests/TrailingCommaRuleTests.swift @@ -13,6 +13,7 @@ class TrailingCommaRuleTests: XCTestCase { func testTrailingCommaRuleWithDefaultConfiguration() { print("Starting default test.") + /* // Verify TrailingCommaRule with test values for when mandatory_comma is false (default). verifyRule(TrailingCommaRule.description) print("Verified rule.") @@ -25,8 +26,8 @@ class TrailingCommaRuleTests: XCTestCase { location: Location(file: nil, line: 3, character: 3), reason: "Collection literals should not have trailing commas." )] - ) - print("Intensionally triggered failure.") + )*/ + print("Finished test.") } private let mandatoryCommaRuleDescription = RuleDescription( @@ -68,6 +69,8 @@ class TrailingCommaRuleTests: XCTestCase { ) func testTrailingCommaRuleWithMandatoryComma() { + print("Started customized tests.") + /* // Verify TrailingCommaRule with test values for when mandatory_comma is true. let ruleDescription = mandatoryCommaRuleDescription let ruleConfiguration = ["mandatory_comma": true] @@ -82,7 +85,8 @@ class TrailingCommaRuleTests: XCTestCase { location: Location(file: nil, line: 3, character: 2), reason: "Multi-line collection literals should have trailing commas." )] - ) + )*/ + print("Finished test.") } private func trailingCommaViolations(_ string: String, ruleConfiguration: Any? = nil) -> [StyleViolation] { @@ -94,7 +98,7 @@ class TrailingCommaRuleTests: XCTestCase { extension TrailingCommaRuleTests { static var allTests: [(String, (TrailingCommaRuleTests) -> () throws -> Void)] { return [ - //("testTrailingCommaRuleWithDefaultConfiguration", testTrailingCommaRuleWithDefaultConfiguration), + ("testTrailingCommaRuleWithDefaultConfiguration", testTrailingCommaRuleWithDefaultConfiguration), ("testTrailingCommaRuleWithMandatoryComma", testTrailingCommaRuleWithMandatoryComma) ] }