Method: IOS::ProjectManipulator#createTests

Defined in:
lib/ios/module/setup/ProjectManipulator.rb

#createTestsObject



287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
# File 'lib/ios/module/setup/ProjectManipulator.rb', line 287

def createTests
    @configurator.printMessage("Gerando pastas de testes")
    # Folders
    FileUtils.mkdir_p File.join(@module_path + "Tests" , "Resources")
    FileUtils.mkdir_p File.join(@module_path + "Tests" , "Sources")
    FileUtils.mkdir_p File.join(@module_path + "Tests" , "Tests")

    # Dummies
    FileUtils.touch File.join(@module_path + "Tests", "Sources", "DummyModel.swift")
    FileUtils.touch File.join(@module_path + "Tests", "Tests", "DummyTest.swift")

    # Info.plist
    FileUtils.cp(
        File.join(@configurator.template_path, "Feature", "Info_template"),
        File.join(@module_path + "Tests", "Resources", "Info.plist")
    )

    @configurator.printDone
end