[swift-dev] [SR-710][RFC] Automatically detecting XCTest test methods on Linux: Reflection? SourceKit?

Drew Crawford drew at sealedabstract.com
Sun Apr 17 16:50:47 CDT 2016


> On Apr 3, 2016, at 10:05 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> 
>> Hmm... but then wouldn't that more tightly couple the test discovery tool
>> and the Swift compiler? In an earlier email you said you "like #3 better
>> [...] because that would decouple the test discovery tool from the Swift
>> compiler." I think that part is confusing me.
> 
> Sorry -- what I meant is that the compiler remains the point of truth
> about the language and can find the tests.  The tools that actually
> generate glue code won't need to parse code, and would be decoupled
> from the compiler.

I am internally shipping a test framework that discovers tests via an out-of-tree parser.  Teaching swiftc about XCTest syntax is not sufficient to deprecate my parser, and therefore is not sufficient for the compiler to be the source of truth for my tests.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20160417/00b0efb5/attachment.html>


More information about the swift-dev mailing list