13 | | * After some help from Chris Hanson and a lot of fuddling, I finally got the Unit tests to work. I'll explain in detail later but it had to do with (1)Setting correct compiling sources |
14 | | (2) setting correct bundleloader settings in Xcode (3) Google Chris Hanson's blog post on how to |
15 | | Unit test a framework |
16 | | * I will be looking into posting asynchronous notifications during api method calls. |
17 | | * I am also at WWDC and will be learnign a lot , some of which will hopefully be helpful to me later |
18 | | on during this project. |
| 13 | * After some help from Chris Hanson ([http://chanson.livejournal.com/182472.html Hanson's Unit Testing Posts]) and a lot of fuddling, I finally got the Unit tests to work. There were two main issues as far as I could tell: |
| 14 | 1. Setting correct "Compliling Sources" for the Test Bundle: This I think only needs to include the *test.h and *test.m classes i.e. the classes that contain the unit tests. Since we already had a dependency on MacPorts.Framework set in the Test Bundle, we didn't need to include any of its source files in the compile stages for the Test bundle. Doing this led to some really weird behavior. For example, in MPInterpreter.m, asking for the bundle of the class returned the Test bundle instead of the MacPorts.Framework so we couldn't find any resource files etc. |
| 15 | 2. The Bundle Loader settings had been set to $(BUILT_PRODUCTS_DIR)/MacPorts.framework/MacPorts. Changing this setting to blank for all configurations for the Test bundle finally fixed the rest of the problems. |
| 16 | * I was also at WWDC from June 9 - June 13 and got to have lunch with drernie, wms and some other Apple Engineers, was lots of fun. |
| 17 | * I am currently working on writing more Tests and merging the current code from my mentor on notifications into my branch. Speaking of notifications, we are currently facing a design issue which I will document below as best as I possibly can, the reason being that we are looking for feedback. |
| 18 | |
| 19 | __''Notifications in MacPorts.Framework''__ |
| 20 | |
| 21 | |