I'm looking into adding unit tests into my existing app, mainly to teach myself how it all works. I've got to the stage where everything is wired up with dependencies, I can run some little checks like:
STAssertEquals(1, 2, @"This is a fail!");
And the result seems to be coming through correctly. Unfortunately, if I import any of my scripts, I get compiler errors on any @property
line that uses a keyword such as unsafe_unretained
or strong
:
Expected a property attribute before 'unsafe_unretained'
I wondered, is this anything to do with ARC? Is OCUnit not ARC-compliant? Do I need to change my compiler settings?