Testing Objective C with swift and XCTest - Ubuntu

Swift Team,

I am trying to build a web IDE where users can compile and execute
Objective C and Swift Code. And, also, I want users be able to test their
code with the help of some unit test suite

I cannot use OS X server to host this web app because of some valid reasons.
So, I am trying to make things work on Ubuntu 14.04
So far I have installed Ubuntu 14.04 version of swift and am able to build
swift application using Swift Package Manager.

Can you please let me know how to test Object C code with swift (XCTest)
I am trying to maintain same test suite for both Swift and Objective C
Please let me know if this is achievable or I have to use different test
suite for Objective C

Waiting for your reply

Thanks,
Atith Alur

XCTest is an Apple framework and I don’t believe it’s open-source. (But if it were, it would be on open source.apple.com.)

—Jens

···

On Jan 11, 2016, at 4:39 PM, Atith Alur via swift-users <swift-users@swift.org> wrote:

Can you please let me know how to test Object C code with swift (XCTest)

You won’t be able to run XCTest on Objective-C code on Linux. XCTest for Objective-C is only supported on Mac OS.

- mish

···

On Jan 11, 2016, at 4:39 PM, Atith Alur via swift-users <swift-users@swift.org> wrote:

Swift Team,

I am trying to build a web IDE where users can compile and execute Objective C and Swift Code. And, also, I want users be able to test their code with the help of some unit test suite

I cannot use OS X server to host this web app because of some valid reasons.
So, I am trying to make things work on Ubuntu 14.04
So far I have installed Ubuntu 14.04 version of swift and am able to build swift application using Swift Package Manager.

Can you please let me know how to test Object C code with swift (XCTest)
I am trying to maintain same test suite for both Swift and Objective C
Please let me know if this is achievable or I have to use different test suite for Objective C

Waiting for your reply

Thanks,
Atith Alur
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Similar to Foundation, there's a Swift rewrite of XCTest being written at

···

On Mon, Jan 11, 2016 at 8:58 PM, Mish Awadah via swift-users < swift-users@swift.org> wrote:

You won’t be able to run XCTest on Objective-C code on Linux. XCTest for
Objective-C is only supported on Mac OS.

- mish

On Jan 11, 2016, at 4:39 PM, Atith Alur via swift-users < > swift-users@swift.org> wrote:

Swift Team,

I am trying to build a web IDE where users can compile and execute
Objective C and Swift Code. And, also, I want users be able to test their
code with the help of some unit test suite

I cannot use OS X server to host this web app because of some valid
reasons.
So, I am trying to make things work on Ubuntu 14.04
So far I have installed Ubuntu 14.04 version of swift and am able to build
swift application using Swift Package Manager.

Can you please let me know how to test Object C code with swift (XCTest)
I am trying to maintain same test suite for both Swift and Objective C
Please let me know if this is achievable or I have to use different test
suite for Objective C

Waiting for your reply

Thanks,
Atith Alur
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

--
Trent Nadeau