It seems that I have everything set up correctly. When I run command ⌘ + U (or select Product > Test from menu) my test runs fine.
Best practices should be that test are run as often as possible, ideally during each build (understand during each run).
How do I force Xcode 4 to do it? I have tried to:
- set up a target dependency (put main app target to be dependent on test target)
- enable a "test after build" in main app target build settings
- tick also test target in scheme editor for run main app scheme
but nothing seems to work. Does anyone have success setting up this?