diff --git a/Tuist/Templates/test/InfoPlist.stencil b/Tuist/Templates/test/InfoPlist.stencil new file mode 100644 index 00000000..b31ce7b0 --- /dev/null +++ b/Tuist/Templates/test/InfoPlist.stencil @@ -0,0 +1,8 @@ + + + + + ENABLE_TESTING_SEARCH_PATHS + YES + + diff --git a/Tuist/Templates/test/Test.stencil b/Tuist/Templates/test/Test.stencil new file mode 100644 index 00000000..c0c58ef3 --- /dev/null +++ b/Tuist/Templates/test/Test.stencil @@ -0,0 +1,10 @@ +import ComposableArchitecture +import XCTest + +@testable import {{ target }} + +final class {{ target }}Tests: XCTestCase { + func test() { + + } +} diff --git a/Tuist/Templates/test/test.swift b/Tuist/Templates/test/test.swift new file mode 100644 index 00000000..ec183842 --- /dev/null +++ b/Tuist/Templates/test/test.swift @@ -0,0 +1,27 @@ +// +// test.swift +// ProjectDescriptionHelpers +// +// Created by 김민호 on 10/10/24. +// + +import ProjectDescription + +let appProjectAttribute: Template.Attribute = .required("project") +let appTargetAttribute: Template.Attribute = .required("target") + +let appTemplate = Template( + description: "Target template", + attributes: [ + appProjectAttribute, + appTargetAttribute + ], + items: [ + .file( + path: "Projects/\(appProjectAttribute)/\(appTargetAttribute)Tests/Sources/\(appTargetAttribute)Tests.swift", + templatePath: "Test.stencil"), + .file( + path: "Projects/\(appProjectAttribute)/\(appTargetAttribute)Tests/Resources/info.plist", + templatePath: "InfoPlist.stencil"), + ] +)