mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-11 20:02:09 +00:00
Update the Swift starting point
- Ignore the generated Xcode project from the repositiory - Bump the swift tools version to 5.5 (supported by Xcode 13+) - Tidy the Tests. LinuxMain, XCTestManifests and the allTests array are no longer needed as tests - are auto-discovered on non-apple platforms
This commit is contained in:
parent
1a81118c63
commit
080738a8b2
2
swift/.gitignore
vendored
2
swift/.gitignore
vendored
@ -3,3 +3,5 @@
|
||||
/Packages
|
||||
/*.xcodeproj
|
||||
xcuserdata/
|
||||
DerivedData/
|
||||
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
|
||||
@ -1,4 +1,4 @@
|
||||
// swift-tools-version:5.3
|
||||
// swift-tools-version:5.5
|
||||
|
||||
import PackageDescription
|
||||
|
||||
|
||||
@ -9,8 +9,4 @@ class GildedRoseTests: XCTestCase {
|
||||
app.updateQuality()
|
||||
XCTAssertEqual(app.items[0].name, "fixme")
|
||||
}
|
||||
|
||||
static var allTests = [
|
||||
("testFoo", testFoo),
|
||||
]
|
||||
}
|
||||
|
||||
@ -1,9 +0,0 @@
|
||||
import XCTest
|
||||
|
||||
#if !canImport(ObjectiveC)
|
||||
public func allTests() -> [XCTestCaseEntry] {
|
||||
return [
|
||||
testCase(GildedRoseTests.allTests),
|
||||
]
|
||||
}
|
||||
#endif
|
||||
@ -1,7 +0,0 @@
|
||||
import XCTest
|
||||
|
||||
import GildedRoseTests
|
||||
|
||||
var tests = [XCTestCaseEntry]()
|
||||
tests += GildedRoseTests.allTests()
|
||||
XCTMain(tests)
|
||||
Loading…
Reference in New Issue
Block a user