Building a command line tool using the Swift Package Manager
John Sundell

Good tutorial, thanks!

I have a small remark, the test will not pass the second time is run, because the testFolder already exists.

I would change the line:

let testFolder = try tempFolder.createSubfolder(named: "CommandLineToolTests")

with this line:

let testFolder = try tempFolder.createSubfolderIfNeeded(withName: "CommandLineToolsTests")
Show your support

Clapping shows how much you appreciated Mihai Cristescu’s story.