Right now XCTest is not included in iOS since it is part of the sdk but not the OS in iOS.
If we want to support xctest code in iOS we need to build an iOS version to run as a framework.
https://github.com/apple/swift-corelibs-xctest
This may be impossible to do right now, we could do is fake the XCTest framework by just running the test code on the web.