You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SR-710 Generate XCTestCaseProvider entries on Linux
Issue Description:
We currently have to add allTests entries for each test to work around the lack of auto-discovery on Linux. This is a source of error when adding new tests and developing on OS X as it is easy to forget.
We should see if we can use the method discovery features on OS X to verify that the allTests method has been implemented and contains all of the available tests. This would ensure that it isn't possible to add new tests and forget to update the list.
The text was updated successfully, but these errors were encountered:
I'm trying to think through what kind of approach to take for this. If I understand correctly, this would not be a responsibility of `swift-corelibs-xctest`, because that library is not ordinarily used on OS X at all, is that right? @ddunbar
For future reference, here is a gist with a Swift source file that can be included in `XCTest` bundles on OS X to trigger failures for tests that aren't found in the test case's `allTests` property. It is essentially the same as the file adopted by SPM:
Barring some kind of support from Apple's XCTest, I don't believe there is any way to `automagically` obtain the behavior requested by this ticket. Instead, individual projects will need to include code such as linked above.
Additional Detail from JIRA
md5: 093d90aa3adc1cdd0aa21c38ed26efb0
is duplicated by:
Issue Description:
We currently have to add allTests entries for each test to work around the lack of auto-discovery on Linux. This is a source of error when adding new tests and developing on OS X as it is easy to forget.
We should see if we can use the method discovery features on OS X to verify that the allTests method has been implemented and contains all of the available tests. This would ensure that it isn't possible to add new tests and forget to update the list.
The text was updated successfully, but these errors were encountered: