Fix des on optional extension generation
Some checks reported warnings
gitea-openium/resgen.swift/pipeline/head This commit is unstable
Some checks reported warnings
gitea-openium/resgen.swift/pipeline/head This commit is unstable
This commit is contained in:
@@ -19,7 +19,7 @@ final class ColorsConfigurationTests: XCTestCase {
|
|||||||
let testingConfiguration = ColorsConfiguration(inputFile: "path/to/colors.txt",
|
let testingConfiguration = ColorsConfiguration(inputFile: "path/to/colors.txt",
|
||||||
style: ColorStyle.all.rawValue,
|
style: ColorStyle.all.rawValue,
|
||||||
xcassetsPath: "path/to/assets.xcassets",
|
xcassetsPath: "path/to/assets.xcassets",
|
||||||
extensionOutputPath: "Colors/Generated",
|
extensionOutputPath: nil,
|
||||||
extensionName: nil,
|
extensionName: nil,
|
||||||
extensionNameUIKit: nil,
|
extensionNameUIKit: nil,
|
||||||
extensionSuffix: nil,
|
extensionSuffix: nil,
|
||||||
@@ -34,8 +34,6 @@ final class ColorsConfigurationTests: XCTestCase {
|
|||||||
"all",
|
"all",
|
||||||
"--xcassets-path",
|
"--xcassets-path",
|
||||||
"projectDirectory/path/to/assets.xcassets",
|
"projectDirectory/path/to/assets.xcassets",
|
||||||
"--extension-output-path",
|
|
||||||
"projectDirectory/Colors/Generated",
|
|
||||||
"--static-members",
|
"--static-members",
|
||||||
"false"
|
"false"
|
||||||
]
|
]
|
||||||
@@ -64,10 +62,10 @@ final class ColorsConfigurationTests: XCTestCase {
|
|||||||
"all",
|
"all",
|
||||||
"--xcassets-path",
|
"--xcassets-path",
|
||||||
"projectDirectory/path/to/assets.xcassets",
|
"projectDirectory/path/to/assets.xcassets",
|
||||||
"--extension-output-path",
|
|
||||||
"projectDirectory/Colors/Generated",
|
|
||||||
"--static-members",
|
"--static-members",
|
||||||
"false",
|
"false",
|
||||||
|
"--extension-output-path",
|
||||||
|
"projectDirectory/Colors/Generated",
|
||||||
"--extension-name",
|
"--extension-name",
|
||||||
"AppUIColor",
|
"AppUIColor",
|
||||||
"--extension-name-ui-kit",
|
"--extension-name-ui-kit",
|
||||||
|
@@ -17,7 +17,7 @@ final class FontsConfigurationTests: XCTestCase {
|
|||||||
func test_argsGeneration_requiredArgs() {
|
func test_argsGeneration_requiredArgs() {
|
||||||
// Given
|
// Given
|
||||||
let testingConfiguration = FontsConfiguration(inputFile: "path/to/fonts.txt",
|
let testingConfiguration = FontsConfiguration(inputFile: "path/to/fonts.txt",
|
||||||
extensionOutputPath: "Fonts/Generated",
|
extensionOutputPath: nil,
|
||||||
extensionName: nil,
|
extensionName: nil,
|
||||||
extensionNameUIKit: nil,
|
extensionNameUIKit: nil,
|
||||||
extensionSuffix: nil,
|
extensionSuffix: nil,
|
||||||
@@ -29,8 +29,6 @@ final class FontsConfigurationTests: XCTestCase {
|
|||||||
// Expect
|
// Expect
|
||||||
let expectedArguments = [
|
let expectedArguments = [
|
||||||
"projectDirectory/path/to/fonts.txt",
|
"projectDirectory/path/to/fonts.txt",
|
||||||
"--extension-output-path",
|
|
||||||
"projectDirectory/Fonts/Generated",
|
|
||||||
"--static-members",
|
"--static-members",
|
||||||
"false"
|
"false"
|
||||||
]
|
]
|
||||||
@@ -54,10 +52,10 @@ final class FontsConfigurationTests: XCTestCase {
|
|||||||
let expectedArguments = [
|
let expectedArguments = [
|
||||||
"-f",
|
"-f",
|
||||||
"projectDirectory/path/to/fonts.txt",
|
"projectDirectory/path/to/fonts.txt",
|
||||||
"--extension-output-path",
|
|
||||||
"projectDirectory/Fonts/Generated",
|
|
||||||
"--static-members",
|
"--static-members",
|
||||||
"true",
|
"true",
|
||||||
|
"--extension-output-path",
|
||||||
|
"projectDirectory/Fonts/Generated",
|
||||||
"--extension-name",
|
"--extension-name",
|
||||||
"AppUIFont",
|
"AppUIFont",
|
||||||
"--extension-name-ui-kit",
|
"--extension-name-ui-kit",
|
||||||
|
@@ -18,7 +18,7 @@ final class ImagesConfigurationTests: XCTestCase {
|
|||||||
// Given
|
// Given
|
||||||
let testingConfiguration = ImagesConfiguration(inputFile: "path/to/images.txt",
|
let testingConfiguration = ImagesConfiguration(inputFile: "path/to/images.txt",
|
||||||
xcassetsPath: "path/to/assets.xcassets",
|
xcassetsPath: "path/to/assets.xcassets",
|
||||||
extensionOutputPath: "Images/Generated",
|
extensionOutputPath: nil,
|
||||||
extensionName: nil,
|
extensionName: nil,
|
||||||
extensionNameUIKit: nil,
|
extensionNameUIKit: nil,
|
||||||
extensionSuffix: nil,
|
extensionSuffix: nil,
|
||||||
@@ -32,8 +32,6 @@ final class ImagesConfigurationTests: XCTestCase {
|
|||||||
"projectDirectory/path/to/images.txt",
|
"projectDirectory/path/to/images.txt",
|
||||||
"--xcassets-path",
|
"--xcassets-path",
|
||||||
"projectDirectory/path/to/assets.xcassets",
|
"projectDirectory/path/to/assets.xcassets",
|
||||||
"--extension-output-path",
|
|
||||||
"projectDirectory/Images/Generated",
|
|
||||||
"--static-members",
|
"--static-members",
|
||||||
"false"
|
"false"
|
||||||
]
|
]
|
||||||
@@ -60,10 +58,10 @@ final class ImagesConfigurationTests: XCTestCase {
|
|||||||
"projectDirectory/path/to/images.txt",
|
"projectDirectory/path/to/images.txt",
|
||||||
"--xcassets-path",
|
"--xcassets-path",
|
||||||
"projectDirectory/path/to/assets.xcassets",
|
"projectDirectory/path/to/assets.xcassets",
|
||||||
"--extension-output-path",
|
|
||||||
"projectDirectory/Images/Generated",
|
|
||||||
"--static-members",
|
"--static-members",
|
||||||
"true",
|
"true",
|
||||||
|
"--extension-output-path",
|
||||||
|
"projectDirectory/Images/Generated",
|
||||||
"--extension-name",
|
"--extension-name",
|
||||||
"AppUIImage",
|
"AppUIImage",
|
||||||
"--extension-name-ui-kit",
|
"--extension-name-ui-kit",
|
||||||
|
Reference in New Issue
Block a user