Quantcast
Channel: Adobe Community : Popular Discussions - InDesign SDK
Viewing all articles
Browse latest Browse all 78596

Does the InDesign SDK support Xcode Unit Testing?

$
0
0

Hi All,

 

I'm looking to integrate a unit testing system with our two InDesign CC plugins within Xcode 4. 

 

Ideally, there would be a test target in each Xcode project that could run after each build and place the results in the Log Navigator.

 

I found that I could add a new Build Target using a Cocoa Unit Testing Bundle template for the project. When I included any of the headers from the InDesign CC SDK, however, I would get the following compilation error:

 

#include "IPMUnknown.h" 
@implementation Debug_Cocoa64_UnitTest 
- (void)setUp{    [super setUp];} 
- (void)tearDown{    [super tearDown];} 
- (void)testExample{          STAssertTrue(false, @"Test Failed intentionally");} 
@end

 

Error: "Unknown type name 'PMIID'"     source/public/interfaces/architecture/IPMUnknown.h     source/public/interfaces/architecture/IPMUnknown.h:57:37: Unknown type name 'PMIID'     In file included from Debug_Cocoa64_UnitTest.mm

 

I checked my header paths of the new target, and the only thing that's independent of the Debug_Cocoa64 target is my Prefix Header.

 

Has anyone had any success pursuing the built in Xcode unit testing? I could also pursue an open source testing kit like GoogleTest or CppUnit, but I was looking for more integration with Xcode to have a build actually fail if the unit tests didn't pass.

 

I appreciate any suggestions or tips for this better coding practice.

 

Thanks,

 

Matt


Viewing all articles
Browse latest Browse all 78596

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>