Re: Putting tests in same file as code to be tested?
Re: Putting tests in same file as code to be tested?
- Subject: Re: Putting tests in same file as code to be tested?
- From: Jens Alfke <email@hidden>
- Date: Wed, 27 May 2015 17:04:47 -0700
On May 27, 2015, at 3:58 PM, Rick Mann < email@hidden> wrote:
So, being able to include the unit tests right with the code to be tested would be nice. The downside, of course, is that the test code normally gets linked in with the distributed binary if you do this.
Not if you wrap it in #if DEBUG … #endif.
(Or do you require that the Release/optimized code be tested? Xcode doesn’t normally do that unless you modify the test settings in the scheme. And it’s problematic because regular NSAsserts in your code will be disabled too, so they won’t be part of tests.)
—Jens |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden