<div dir="ltr">Do you refer to this proposal?<div><a href="https://github.com/apple/swift-evolution/pull/51/files">https://github.com/apple/swift-evolution/pull/51/files</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 13, 2015 at 9:26 PM, Joshua Scott Emmons via swift-build-dev <span dir="ltr">&lt;<a href="mailto:swift-build-dev@swift.org" target="_blank">swift-build-dev@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">&gt; The proposal process for swiftpm is the same as that for Swift; we will submit a proper document later today (if possible) and everyone will be able to submit feedback. It is important to note that our proposal is just as valid as yours, so if you dislike what you read you should feel free to submit your own via the same process.<br>
<br>
I haven&#39;t seen this go up on <a href="http://github.com/apple/swift-package-manager" rel="noreferrer" target="_blank">github.com/apple/swift-package-manager</a> yet — maybe I&#39;m looking in the wrong place? But to kick off some conversation, my own naive proposal would be something like:<br>
<br>
* By convention, tests live in &quot;./Tests&quot; relative to &quot;Package.swift&quot; (though this location could be explicitly set in the manifest, just like ./Sources)<br>
<br>
* Running `swift test` from the &quot;Package.swift&quot; directory would first build the package libraries, then build everything in &quot;./Tests&quot; linked with those libs.<br>
<br>
* In the fullness of time, the build system would find all subclasses of `XCTestCase`, running each method of said subclass beginning with `test…`<br>
<br>
* Until we have the necessary introspection capabilities, though, we can create a &quot;main.swift&quot; file that creates `XCTMain` with the list of tests to run. Once introspection is up to par, we should be able to delete &quot;main.swift&quot; and everything will just work.<br>
<br>
* Subdirectories under &quot;/Tests&quot; could specify different &quot;test suites&quot;. Each would have its own &quot;main.swift&quot;, to aide in organization of tests for large packages. Test suites could be run individually via argument to the command line.<br>
<br>
I&#39;m sure there&#39;s tons that&#39;s being overlooked here. Comments?<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Cheers,<br>
-jemmons<br>
<br>
<br>
_______________________________________________<br>
swift-build-dev mailing list<br>
<a href="mailto:swift-build-dev@swift.org">swift-build-dev@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-build-dev" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-build-dev</a><br>
</font></span></blockquote></div><br></div>