Pitch: Changing behaviour of `--attachments-path` to create the directory if it doesn't exists

Hello folks,

I raised Swift Testing should create the attachments-path if it does not exist · Issue #1665 · swiftlang/swift-testing · GitHub at the beginning of April as a means of improving the developer experience using Swift Testing with SwiftPM. In brief, when running swift test --attachments-path /path/does/not/exists, Swift Testing will generate an error similar to

Invalid value "/path/does/not/exists" for argument ---attachments-path

I have a PR open the behaviour to create the directory specified by --attachments-path if it does not exist.

This behavioural change was discussed with the @testing-workgroup during their last meeting and there was no strong opinion to keep the current behaviour.

I'm seeking the communities feedback. Do you support this change or not? Do you have any other concerns?

Looking forward to hearing your thoughts,

Sam

Is this meant to be a Swift Evolution pitch? If so, it belongs in the Evolution category and you should draft a proposal document.

In the most recent Testing workgroup meeting those in attendance when this was discussed (near the beginning) didn’t feel this needed a formal Swift evolution proposal document, but did feel it was worth raising on the forums somewhere. I haven’t had a chance to review the accompanying PR yet but in principle I support this change.

It is not meant for a Swift Evolution pitch. It's meant more to gather community feedback on the change and prefixing the subject with "Pitch" seemed like a good way to get the community attention