fcosta
07/05/2019, 6:33 PMkotlin {
targets {
final def iOSTarget = System.getenv('SDK_NAME')?.startsWith("iphoneos") ? presets.iosArm64 : presets.iosX64
fromPreset(iOSTarget, 'ios') {
binaries {
framework('client')
framework('test') {
compilation = compilations.test
linkerOpts += ['-framework', 'UIKit']
}
}
}
}
cocoapods {
// Configure fields required by CocoaPods.
summary = "chat-client"
homepage = "<https://github.com/felipehjcosta>"
pod('SocketRocket', '0.5.1')
pod('OHHTTPStubs')
}
}
louiscad
07/05/2019, 6:52 PMfcosta
07/05/2019, 7:34 PMfcosta
07/05/2019, 7:36 PMfcosta
07/08/2019, 11:51 AMiosTest
task imported into test target in my Podfile
which is on master branch of my project: https://github.com/felipehjcosta/chat-app
The other way was generating a test framework, importing this framework with Cocoapods into Xcode and calling the tests in my Swift class. Unfortunately, the tests fail to run 😞
I created a branch for this case here: https://github.com/felipehjcosta/chat-app/tree/runiOSTestWithXcode
How do you guys run your uni tests?