Skip to content

Commit 89bfd52

Browse files
authored
Merge pull request #653 from gsl-anthonymerle/xctestplan_file_extension
2 parents a2275dd + b1352dd commit 89bfd52

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
## Master
1515

16+
- Add `.xctestplan` extension to available file extensions [@gsl-anthonymerle][] - [#653](https://github.com/danger/swift/pull/653)
17+
1618
## 3.21.2
1719

1820
- Fix Runner's path resolution to enable `--cwd` with relative paths [@Fab1n](https://github.com/Fab1n) - [#650](https://github.com/danger/swift/pull/650)
@@ -622,4 +624,5 @@ This release also includes:
622624
[@aserdobintsev]: https://github.com/aserdobintsev
623625
[@dromerobarria]: https://github.com/dromerobarria
624626
[@msnazarow]: https://github.com/msnazarow
625-
[@Davarg]https://github.com/Davarg
627+
[@Davarg]: https://github.com/Davarg
628+
[@gsl-anthonymerle]: https://github.com/gsl-anthonymerle

Sources/Danger/File.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public extension File {
1919

2020
public enum FileType: String, Equatable, CaseIterable {
2121
// swiftlint:disable:next identifier_name
22-
case h, json, m, markdown = "md", mm, pbxproj, plist, storyboard, swift, xcscheme, yaml, yml
22+
case h, json, m, markdown = "md", mm, pbxproj, plist, storyboard, swift, xcscheme, yaml, yml, xctestplan
2323
}
2424

2525
// MARK: - FileType extensions

Tests/DangerTests/FileTests.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,12 @@ final class FileTests: XCTestCase {
129129

130130
XCTAssertEqual(file.fileType, expectedType)
131131
}
132+
133+
func test_fileType_forXCTestPlan() {
134+
let file: File = "TestPlan.xctestplan"
135+
136+
let expectedType: FileType = .xctestplan
137+
138+
XCTAssertEqual(file.fileType, expectedType)
139+
}
132140
}

0 commit comments

Comments
 (0)