Reputation: 87
I've just started writing unit tests and I've encountered an issue. So far I've dug through different blogs on google and stackoverflow but I haven't been able to resolve this.
Every time I write a function to be tested the run button (shaped like a diamond) does not appear. The only run buttons that do show up are the default functions created by Xcode when you create a new unit test target.
Here's an example of the issues.
Could it be a bug or am I missing something?
Upvotes: 6
Views: 2780
Reputation: 515
test needs to be on the front of the function signature. ie: test"functionName"()
Upvotes: 22