Unit testing C++ in XCode

by oorst   Last Updated February 11, 2019 06:05 AM

I'm working on a plugin for some drafting software. The plugin takes the form of a dynamically loaded mach-o bundle.

The software vendor provides a template plugin in the form of an XCode project.

The whole thing is written in C++, but XCode doesn't seem to support C++ in it's testing bundle targets.

Tests could be written in Objective-C that include the C++ code, but that's not a great solution.

Another option would be to create another executable target that runs it's own bunch of tests.

What have others done in this situation?

What's the best way to write unit tests in XCode when using C++?



Related Questions


Workaround for unit testing Core Data in Swift

Updated March 29, 2015 06:01 AM

Managing code: Unit tests with source or separate?

Updated March 09, 2018 14:05 PM

Best practices on unit tests for consecutive functions

Updated November 26, 2018 22:05 PM

What is IBM's CUPRIMDS?

Updated February 18, 2017 10:05 AM

What does stubbing mean in programming?

Updated March 03, 2017 13:05 PM