Skip to content

Commit

Permalink
refactor: structure of tests and files (#159)
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Yves Lapersonne <[email protected]>
  • Loading branch information
pylapp committed Jan 20, 2025
1 parent 316bf71 commit 54fee62
Show file tree
Hide file tree
Showing 1,819 changed files with 32 additions and 21 deletions.
51 changes: 31 additions & 20 deletions Showcase/Showcase.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
077CCE592CB426090059CC28 /* DimensionTokenElement.swift in Sources */ = {isa = PBXBuildFile; fileRef = 077CCE542CB426090059CC28 /* DimensionTokenElement.swift */; };
0784B2712CCB86C500299C10 /* NamedSize+IconWithTypography.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0784B26F2CCB86C500299C10 /* NamedSize+IconWithTypography.swift */; };
0784B2732CCB8CC800299C10 /* NamedSize+IconDecorative.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0784B2722CCB8CC800299C10 /* NamedSize+IconDecorative.swift */; };
07C7F4AD2D391B440037E211 /* OUDSButtonUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07C7F4AC2D391B440037E211 /* OUDSButtonUITests.swift */; };
07C7F4AD2D391B440037E211 /* OUDSComponentButtonUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07C7F4AC2D391B440037E211 /* OUDSComponentButtonUITests.swift */; };
07CAE7682CEE20A600D6C5D1 /* SpaceTokenCommonIllustration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 075C71322CEB743300B93FC3 /* SpaceTokenCommonIllustration.swift */; };
07CAE7692CEE20B200D6C5D1 /* SpaceGapTokenIllustrations.swift in Sources */ = {isa = PBXBuildFile; fileRef = 075C713A2CECC7DA00B93FC3 /* SpaceGapTokenIllustrations.swift */; };
07CAE76A2CEE20B200D6C5D1 /* SpacePaddingTokenIllustrations.swift in Sources */ = {isa = PBXBuildFile; fileRef = 075C71362CECC3D800B93FC3 /* SpacePaddingTokenIllustrations.swift */; };
Expand Down Expand Up @@ -245,7 +245,7 @@
077CCE542CB426090059CC28 /* DimensionTokenElement.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DimensionTokenElement.swift; sourceTree = "<group>"; };
0784B26F2CCB86C500299C10 /* NamedSize+IconWithTypography.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "NamedSize+IconWithTypography.swift"; sourceTree = "<group>"; };
0784B2722CCB8CC800299C10 /* NamedSize+IconDecorative.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "NamedSize+IconDecorative.swift"; sourceTree = "<group>"; };
07C7F4AC2D391B440037E211 /* OUDSButtonUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OUDSButtonUITests.swift; sourceTree = "<group>"; };
07C7F4AC2D391B440037E211 /* OUDSComponentButtonUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OUDSComponentButtonUITests.swift; path = OUDSComponentButtonUITests/OUDSComponentButtonUITests.swift; sourceTree = "<group>"; };
07CEDD802C7DB921003E1885 /* generateDoc.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; name = generateDoc.sh; path = ../generateDoc.sh; sourceTree = "<group>"; };
07CF426A2CA30728000BD03E /* TokensPage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TokensPage.swift; sourceTree = "<group>"; };
07CF42712CA31AC3000BD03E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
Expand Down Expand Up @@ -293,14 +293,14 @@
51BD761C2C466FCF0033365D /* WebView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WebView.swift; sourceTree = "<group>"; };
51BD761E2C466FCF0033365D /* Showcase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Showcase.swift; sourceTree = "<group>"; };
51BD761F2C466FCF0033365D /* MainView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MainView.swift; sourceTree = "<group>"; };
6D17A2172CCBE50700C00512 /* OUDSTypographyUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OUDSTypographyUITests.swift; path = ShowcaseTests/__Snapshots__/OUDSTokensTypographyUITests/OUDSTypographyUITests.swift; sourceTree = SOURCE_ROOT; };
6D17A2192CCBE74C00C00512 /* OUDSTokensElevationUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OUDSTokensElevationUITests.swift; path = ShowcaseTests/__Snapshots__/OUDSTokensElevationUITests/OUDSTokensElevationUITests.swift; sourceTree = SOURCE_ROOT; };
6D17A21B2CCBE7E200C00512 /* OUDSTokensOpacityUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OUDSTokensOpacityUITests.swift; path = ShowcaseTests/__Snapshots__/OUDSTokensOpacityUITests/OUDSTokensOpacityUITests.swift; sourceTree = SOURCE_ROOT; };
6D17A2292CCBEF6700C00512 /* OUDSTokensColorUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OUDSTokensColorUITests.swift; path = ShowcaseTests/__Snapshots__/OUDSTokensColorUITests/OUDSTokensColorUITests.swift; sourceTree = SOURCE_ROOT; };
6D3E872B2CCBE0A300AEB105 /* OUDSTokenBorderUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OUDSTokenBorderUITests.swift; path = ShowcaseTests/__Snapshots__/OUDSTokensBorderUITests/OUDSTokenBorderUITests.swift; sourceTree = SOURCE_ROOT; };
6D17A2172CCBE50700C00512 /* OUDSTokensFontUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OUDSTokensFontUITests.swift; path = ShowcaseTests/__Snapshots__/Tokens/OUDSTokensFontUITests/OUDSTokensFontUITests.swift; sourceTree = SOURCE_ROOT; };
6D17A2192CCBE74C00C00512 /* OUDSTokensElevationUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OUDSTokensElevationUITests.swift; path = ShowcaseTests/__Snapshots__/Tokens/OUDSTokensElevationUITests/OUDSTokensElevationUITests.swift; sourceTree = SOURCE_ROOT; };
6D17A21B2CCBE7E200C00512 /* OUDSTokensOpacityUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OUDSTokensOpacityUITests.swift; path = ShowcaseTests/__Snapshots__/Tokens/OUDSTokensOpacityUITests/OUDSTokensOpacityUITests.swift; sourceTree = SOURCE_ROOT; };
6D17A2292CCBEF6700C00512 /* OUDSTokensColorUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OUDSTokensColorUITests.swift; path = ShowcaseTests/__Snapshots__/Tokens/OUDSTokensColorUITests/OUDSTokensColorUITests.swift; sourceTree = SOURCE_ROOT; };
6D3E872B2CCBE0A300AEB105 /* OUDSTokenBorderUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OUDSTokenBorderUITests.swift; path = ShowcaseTests/__Snapshots__/Tokens/OUDSTokensBorderUITests/OUDSTokenBorderUITests.swift; sourceTree = SOURCE_ROOT; };
6DCC57E12CEB984D000F35F8 /* ShowcaseCode.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShowcaseCode.swift; sourceTree = "<group>"; };
6DED17E82CD1143500584BC9 /* OUDSTokensSizeUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OUDSTokensSizeUITests.swift; path = ShowcaseTests/__Snapshots__/OUDSTokensDimensionUITests/Size/OUDSTokensSizeUITests.swift; sourceTree = SOURCE_ROOT; };
6DED17EA2CD114AD00584BC9 /* OUDSTokensSpaceUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OUDSTokensSpaceUITests.swift; path = ShowcaseTests/__Snapshots__/OUDSTokensDimensionUITests/Space/OUDSTokensSpaceUITests.swift; sourceTree = SOURCE_ROOT; };
6DED17E82CD1143500584BC9 /* OUDSTokensSizeUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OUDSTokensSizeUITests.swift; path = ShowcaseTests/__Snapshots__/Tokens/OUDSTokensDimensionUITests/Size/OUDSTokensSizeUITests.swift; sourceTree = SOURCE_ROOT; };
6DED17EA2CD114AD00584BC9 /* OUDSTokensSpaceUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OUDSTokensSpaceUITests.swift; path = ShowcaseTests/__Snapshots__/Tokens/OUDSTokensDimensionUITests/Space/OUDSTokensSpaceUITests.swift; sourceTree = SOURCE_ROOT; };
6DFC208A2CDE669500F2EC33 /* AccessibilityStatementPage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccessibilityStatementPage.swift; sourceTree = "<group>"; };
6DFC20B02CE3AF1500F2EC33 /* boosted-grid.min.css */ = {isa = PBXFileReference; lastKnownFileType = text.css; path = "boosted-grid.min.css"; sourceTree = "<group>"; };
6DFC20B12CE3AF1500F2EC33 /* favicon.ico */ = {isa = PBXFileReference; lastKnownFileType = image.ico; path = favicon.ico; sourceTree = "<group>"; };
Expand Down Expand Up @@ -425,13 +425,8 @@
0740A9902C9873500069D24A /* ShowcaseTests */ = {
isa = PBXGroup;
children = (
51FD2D362D3E992B00E7703D /* Tokens */,
07C7F4AB2D391AE00037E211 /* Components */,
6D17A2242CCBEF1100C00512 /* OUDSTokensColorUITests */,
6D8F9BE42CBFC2F70078A10E /* OUDSTokensTypographyUITests */,
6D8F9B9B2CBFB8830078A10E /* OUDSTokensDimensionUITests */,
6D8F9B722CBED90D0078A10E /* OUDSTokensElevationUITests */,
6D8F9B392CBECBB80078A10E /* OUDSTokensOpacityUITests */,
6D2465892CBEAB4C0023E359 /* OUDSTokensBorderUITests */,
074008212C9427F8006B8729 /* Snapshots */,
0740A99C2C9888CF0069D24A /* ShowcaseUITestPlan.xctestplan */,
);
Expand Down Expand Up @@ -541,9 +536,10 @@
07C7F4AB2D391AE00037E211 /* Components */ = {
isa = PBXGroup;
children = (
07C7F4AC2D391B440037E211 /* OUDSButtonUITests.swift */,
07C7F4AC2D391B440037E211 /* OUDSComponentButtonUITests.swift */,
);
path = Components;
name = Components;
path = __Snapshots__/Components;
sourceTree = "<group>";
};
07CF42752CA3F461000BD03E /* Elevation */ = {
Expand Down Expand Up @@ -757,6 +753,20 @@
path = Showcase;
sourceTree = "<group>";
};
51FD2D362D3E992B00E7703D /* Tokens */ = {
isa = PBXGroup;
children = (
6D17A2242CCBEF1100C00512 /* OUDSTokensColorUITests */,
6D8F9BE42CBFC2F70078A10E /* OUDSTokensTypographyUITests */,
6D8F9B9B2CBFB8830078A10E /* OUDSTokensDimensionUITests */,
6D8F9B722CBED90D0078A10E /* OUDSTokensElevationUITests */,
6D8F9B392CBECBB80078A10E /* OUDSTokensOpacityUITests */,
6D2465892CBEAB4C0023E359 /* OUDSTokensBorderUITests */,
);
name = Tokens;
path = __Snapshots__/Tokens;
sourceTree = "<group>";
};
6D17A2242CCBEF1100C00512 /* OUDSTokensColorUITests */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -801,9 +811,10 @@
6D8F9BE42CBFC2F70078A10E /* OUDSTokensTypographyUITests */ = {
isa = PBXGroup;
children = (
6D17A2172CCBE50700C00512 /* OUDSTypographyUITests.swift */,
6D17A2172CCBE50700C00512 /* OUDSTokensFontUITests.swift */,
);
path = OUDSTokensTypographyUITests;
name = OUDSTokensTypographyUITests;
path = OUDSTokensFontUITests;
sourceTree = "<group>";
};
6DFC20892CDE664400F2EC33 /* AccessibilityStatement */ = {
Expand Down Expand Up @@ -1064,7 +1075,7 @@
072141132D02F3F200B7B9C6 /* ShowcaseElementPage.swift in Sources */,
072141192D02F52A00B7B9C6 /* ButtonPage.swift in Sources */,
0721411B2D02F52A00B7B9C6 /* ButtonElement.swift in Sources */,
07C7F4AD2D391B440037E211 /* OUDSButtonUITests.swift in Sources */,
07C7F4AD2D391B440037E211 /* OUDSComponentButtonUITests.swift in Sources */,
072141142D02F3F200B7B9C6 /* ShowcaseVariantElement.swift in Sources */,
6DB260E12CD0F0520091F72E /* NameSpace+PaddingInset.swift in Sources */,
6DB260E22CD0F0520091F72E /* NameSpace+PaddingStack.swift in Sources */,
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import XCTest
// swiftlint:disable required_deinit

/// Tests the UI Button rendering of each parameter of `OUDSButton`.
final class OUDSButtonUITests: XCTestCase {
final class OUDSComponentButtonUITests: XCTestCase {

/// This function tests all buttons configuration in the `OrangeTheme` with the `light` color schemes.
@MainActor func testAllButtonsOrangeThemeLight() {
Expand Down
Loading

0 comments on commit 54fee62

Please sign in to comment.