diff --git a/Library/Sources/Internal/Enumerations/Folder.swift b/Library/Sources/Internal/Enumerations/Folder.swift index 6ab0a90..a732658 100644 --- a/Library/Sources/Internal/Enumerations/Folder.swift +++ b/Library/Sources/Internal/Enumerations/Folder.swift @@ -30,4 +30,19 @@ extension Folder { // MARK: - CaseIterable -extension Folder: CaseIterable {} +extension Folder: CaseIterable { + + // MARK: Properties + + static var allCases: [Folder] {[ + .app, + .libraryPublic, + .libraryInternal, + .testCasesPublic, + .testCasesInternal, + .testHelpers + ]} + + static var allCasesWithRoot: [Folder] { [.root] + Folder.allCases } + +} diff --git a/Test/Sources/Cases/Internal/Enumerations/FolderTests.swift b/Test/Sources/Cases/Internal/Enumerations/FolderTests.swift index 1278e42..1caba0d 100644 --- a/Test/Sources/Cases/Internal/Enumerations/FolderTests.swift +++ b/Test/Sources/Cases/Internal/Enumerations/FolderTests.swift @@ -6,7 +6,7 @@ struct FolderTests { // MARK: Properties tests - @Test(arguments: zip(Folder.allCases, Expectation.paths)) + @Test(arguments: zip(Folder.allCasesWithRoot, Expectation.paths)) func paths(for folder: Folder, expects path: String) async throws { // GIVEN // WHEN @@ -23,10 +23,10 @@ struct FolderTests { private extension FolderTests { enum Expectation { static let paths: [String] = [ + "", "App/Sources", "Library/Sources/Public", "Library/Sources/Internal", - "", "Test/Sources/Cases/Public", "Test/Sources/Cases/Internal", "Test/Sources/Helpers"