I'm attempting to create some Unit Tests for Logic & Application. I went through the sample program in the Apple Docs and even down loaded the iPhoneUnitTesting project.
What I can't see to figure out or find in any the documentation or samples, is how to include your own classes / methods into the Unit test file and get it to link correctly.
I have a class that sets up data for a picker, and I want to just verify that the data is populated correctly and it matches the code that is expected.
But when I include the .h file in one of my Unit Test files, I get a linking error during the build. "_OBJC_CLASS_$_MyClass", referenced from: _objc_classrefs_DATA@0 in MyClassTest.o Symbol(s) not found.
I'm sure it's just something in the Unit Test setup that I'm missing.
I created/copied my target app and renamed it "MyAppTesting".
I added my TestBundle to MyAppTesting as a dependency.
My TestBundle contains the compiled tests sources
And I verified that the target: MyAppTesting contains the Include file of the Class I'm attempting to use in it's Compile Sources.
Any help would be grateful.
What I can't see to figure out or find in any the documentation or samples, is how to include your own classes / methods into the Unit test file and get it to link correctly.
I have a class that sets up data for a picker, and I want to just verify that the data is populated correctly and it matches the code that is expected.
But when I include the .h file in one of my Unit Test files, I get a linking error during the build. "_OBJC_CLASS_$_MyClass", referenced from: _objc_classrefs_DATA@0 in MyClassTest.o Symbol(s) not found.
I'm sure it's just something in the Unit Test setup that I'm missing.
I created/copied my target app and renamed it "MyAppTesting".
I added my TestBundle to MyAppTesting as a dependency.
My TestBundle contains the compiled tests sources
And I verified that the target: MyAppTesting contains the Include file of the Class I'm attempting to use in it's Compile Sources.
Any help would be grateful.