Unit Test not found
Unit Test not found
- Subject: Unit Test not found
- From: Alexander Hartner <email@hidden>
- Date: Tue, 17 Jan 2006 00:45:33 +0000
I am trying to develop a few test cases to test my application. I
added a Unit Test Bundle Target and added 2 test cases to the bundle.
I added the SenTestingKit.framework under Link Binary With Library.
When I now go and build my Unit Test Bundle in X Code 2.2 on 10.4.4 I
get the following message :
...
setenv YACC /usr/bin/yacc
setenv ZERO_LINK NO
/bin/sh -c /Users/alex/Projects/AddressBook4LDAP/build/
AddressBook4LDAP.build/Debug/UnitTests.build/Script-
FAC021F2097C612900973DBB.sh
Suite All started
Suite All finished
Ran 0 tests, 0 failed.
Yet when I execute the following from the Terminal the tests are
executed.
/Developer/Tools/otest UnitTests.cptest
2006-01-17 00:12:31.382 otest[2225] +[NSATSGlyphGenerator initialize]
invocation. The class is deprecated.
Test Suite 'UnitTests.cptest(Tests)' started at 2006-01-17 00:12:31
+0000
Test Suite 'ListContacts' started at 2006-01-17 00:12:31 +0000
2006-01-17 00:12:31.465 otest[2225] Test Case setup
2006-01-17 00:12:31.466 otest[2225] Executing test case 1
/Users/alex/Projects/AddressBook4LDAP/ListContacts.m:27: error: -
[ListContacts testCase1] : FAILED : BUG
Test Case '-[ListContacts testCase1]' failed (0.003 seconds).
2006-01-17 00:12:31.469 otest[2225] Test Case torn down
Test Suite 'ListContacts' finished at 2006-01-17 00:12:31 +0000.
Executed 1 test, with 1 failure (0 unexpected) in 0.003 (0.004) seconds
Test Suite 'Case2' started at 2006-01-17 00:12:31 +0000
2006-01-17 00:12:31.471 otest[2225] Test Case setup
2006-01-17 00:12:31.471 otest[2225] Executing test case 1
/Users/alex/Projects/AddressBook4LDAP/Case2.m:27: error: -[Case2
testCase1] : FAILED : BUG
Test Case '-[Case2 testCase1]' failed (0.003 seconds).
2006-01-17 00:12:31.474 otest[2225] Test Case torn down
Test Suite 'Case2' finished at 2006-01-17 00:12:31 +0000.
Executed 1 test, with 1 failure (0 unexpected) in 0.003 (0.004) seconds
Test Suite 'UnitTests.cptest(Tests)' finished at 2006-01-17 00:12:31
+0000.
Executed 2 tests, with 2 failures (0 unexpected) in 0.006 (0.011)
seconds
wolf:~/Projects/AddressBook4LDAP/build/Release alex$
I then had a look at the script executed by XCode and tried to run it
manually and ended up with this.
wolf:~/Projects/AddressBook4LDAP/build/Release alex$ /Developer/Tools/
RunUnitTests UnitTests
/Developer/Tools/RunUnitTests:62: error: No TARGET_NAME specified,
please set it to the name of your unit test bundle with no extension.
wolf:~/Projects/AddressBook4LDAP/build/Release alex$
I can run the tests, but only from the terminal. XCode does not seem
to be able to find my test cases. Any suggestion where to look. I
tried going through the documentation, but did not find anything for
my particular problem.
Thanks
Alex
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden