[swift-build-dev] [swift-evolution] [Review] SE-0019 Swift Testing (Package Manager)
cantrell at pobox.com
Thu Jan 21 15:22:50 CST 2016
> On Jan 21, 2016, at 2:54 PM, Rick Ballard <rballard at apple.com> wrote:
> Test modules are like any other swift module and are not restricted to compiling a single file. So sharing helper code within a test module should be fine; the part we don't support right now is sharing one module of utility code among multiple separate test modules, unless you make that utility module a separate package.
> Our plan is that 'swift test' by default will run all the test modules in the top-level package, but will not by default run all test modules in depended-upon packages (though that will be possible). Adding the ability to remove test modules from the default set that we run would be a good future enhancement.
Good, that all seems to me like the right 80% case (or maybe more like 95% case) for the first round.
Some projects will eventually want code sharing across test modules and control over which test modules are run by default, but I think that can all wait, and the proposal as it stands does leave room for those future features.
More information about the swift-build-dev