Unit testing in Xcode 3.1

I read the question "The best way is unit test Objective-C and follow the instructions, but no matter what I do, Unit tests do not run. Actually the whole program does not start, the following message appears.

dyld: library not loaded: @ rpath / SenTestingKit.framework / Versions / A / SenTestingKit Link from / Users / garethlewis / work / objc / UnitTesting / build / Debug / UnitTesting Reason: image not found

I set the variable DYLD_FALLBACK_FRAMEWORK_PATH, as well as XCInjectBundle, as well as DYLD_INSERT_LIBRARIES and added the variable -SenTest All.

I cannot have a single Xcode 3.1 installation in which module testing is performed.

Could someone who was able to get unit testing on Xcode 3.1 give some details on what needs to be done. This would help so with what I'm trying to do.

+3
source share
1 answer

You do not need to do this just to run the tests.

If you are writing tests for an application, you just need to set the test host and Bundle Loader assembly settings for your unit test target task and they will run as part of your assembly. If you write tests for the framework, you don’t even need this, just make sure that your test suite is associated with your framework.

I assume that you are actually talking about debugging tests, not just running them. If so, it is important that you provide us with the following information:

  • - -
  • (-SenTest All , )
  • , ,

.

, DYLD_FALLBACK_FRAMEWORK_PATH, , dyld SenTestingKit.framework, @rpath . , , , .

(PS - It Xcode.)

+4

Source: https://habr.com/ru/post/1696652/


All Articles