More CI debugging.

This commit is contained in:
Jeremy David Giesbrecht
2017-03-28 20:39:41 -06:00
parent 0939857b71
commit 332c14761b
@@ -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)
]
}