Skip to content

Commit

Permalink
Reorganizing the UnitTests folder
Browse files Browse the repository at this point in the history
  • Loading branch information
AliSoftware committed Oct 13, 2015
1 parent cdde149 commit 61cf563
Show file tree
Hide file tree
Showing 26 changed files with 69 additions and 137 deletions.
178 changes: 53 additions & 125 deletions SwiftGen.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ColorsTests: XCTestCase {
enumBuilder.addColorWithName("ArticleBackground", value: "#ffcc0099")
let result = enumBuilder.build()

let expected = self.fixtureString("ListDefaults.swift.out")
let expected = self.fixtureString("ColorsListDefaults.swift.out")
XCTDiffStrings(result, expected)
}

Expand All @@ -27,7 +27,7 @@ class ColorsTests: XCTestCase {
try! enumBuilder.parseTextFile(fixturePath("colors.txt"))
let result = enumBuilder.build()

let expected = self.fixtureString("FileDefaults.swift.out")
let expected = self.fixtureString("ColorsFileDefaults.swift.out")
XCTDiffStrings(result, expected)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class L10nTests: XCTestCase {
enumBuilder.addEntry(L10nEnumBuilder.Entry(key: "Greetings", types: .Object, .Int))
let result = enumBuilder.build()

let expected = self.fixtureString("EntriesWithDefaults.swift.out")
let expected = self.fixtureString("L10nEntriesWithDefaults.swift.out")
XCTDiffStrings(result, expected)
}

Expand All @@ -31,7 +31,7 @@ class L10nTests: XCTestCase {
}
let result = enumBuilder.build()

let expected = self.fixtureString("LinesWithDefaults.swift.out")
let expected = self.fixtureString("L10nLinesWithDefaults.swift.out")
XCTDiffStrings(result, expected)
}

Expand All @@ -40,7 +40,7 @@ class L10nTests: XCTestCase {
try! enumBuilder.parseLocalizableStringsFile(fixturePath("Localizable.strings"))
let result = enumBuilder.build()

let expected = self.fixtureString("FileWithDefaults.swift.out")
let expected = self.fixtureString("L10nFileWithDefaults.swift.out")
XCTDiffStrings(result, expected)
}

Expand All @@ -49,7 +49,7 @@ class L10nTests: XCTestCase {
try! enumBuilder.parseLocalizableStringsFile(fixturePath("Localizable.strings"))
let result = enumBuilder.build(enumName: "XCTLoc")

let expected = self.fixtureString("FileWithCustomName.swift.out")
let expected = self.fixtureString("L10nFileWithCustomName.swift.out")
XCTDiffStrings(result, expected)
}

Expand All @@ -58,7 +58,7 @@ class L10nTests: XCTestCase {
try! enumBuilder.parseLocalizableStringsFile(fixturePath("Localizable.strings"))
let result = enumBuilder.build(indentation: .Spaces(3))

let expected = self.fixtureString("FileWithCustomIndentation.swift.out")
let expected = self.fixtureString("L10nFileWithCustomIndentation.swift.out")
XCTDiffStrings(result, expected)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class StoryboardTests: XCTestCase {
enumBuilder.addStoryboardAtPath(self.fixturePath("Message.storyboard"))
let result = enumBuilder.build()

let expected = self.fixtureString("MessageWithDefaults.swift.out")
let expected = self.fixtureString("StoryboardsMessageWithDefaults.swift.out")
XCTDiffStrings(result, expected)
}

Expand All @@ -31,7 +31,7 @@ class StoryboardTests: XCTestCase {
enumBuilder.parseDirectory(self.fixturesDir)
let result = enumBuilder.build()

let expected = self.fixtureString("AllWithDefaults.swift.out")
let expected = self.fixtureString("StoryboardsAllWithDefaults.swift.out")
XCTDiffStrings(result, expected)
}

Expand All @@ -40,7 +40,7 @@ class StoryboardTests: XCTestCase {
enumBuilder.addStoryboardAtPath(self.fixturePath("Message.storyboard"))
let result = enumBuilder.build(scenesStructName: "XCTAllScenes", seguesStructName: "XCTAllSegues")

let expected = self.fixtureString("MessageWithCustomNames.swift.out")
let expected = self.fixtureString("StoryboardsMessageWithCustomNames.swift.out")
XCTDiffStrings(result, expected)
}

Expand All @@ -49,7 +49,7 @@ class StoryboardTests: XCTestCase {
enumBuilder.addStoryboardAtPath(self.fixturePath("Message.storyboard"))
let result = enumBuilder.build(indentation: .Spaces(3))

let expected = self.fixtureString("MessageWithCustomIndentation.swift.out")
let expected = self.fixtureString("StoryboardsMessageWithCustomIndentation.swift.out")
XCTDiffStrings(result, expected)
}
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8191" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="txY-Mc-CKa">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8191" systemVersion="15A284" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="txY-Mc-CKa">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8154"/>
</dependencies>
Expand All @@ -15,6 +15,7 @@
<view key="view" contentMode="scaleToFill" id="wQH-MG-v6Y">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<animations/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</view>
</viewController>
Expand All @@ -33,6 +34,7 @@
<view key="view" contentMode="scaleToFill" id="N1u-m6-6Oc">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<animations/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</view>
</viewController>
Expand All @@ -51,6 +53,7 @@
<view key="view" contentMode="scaleToFill" id="rJE-c0-6Bp">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<animations/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</view>
</viewController>
Expand All @@ -69,6 +72,7 @@
<view key="view" contentMode="scaleToFill" id="kbD-ft-yfE">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<animations/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</view>
</viewController>
Expand Down
File renamed without changes.

0 comments on commit 61cf563

Please sign in to comment.