When writing unit test with OCUnit it's possible to omit the test method definition in the public interface (.h). But what is the best practice for OCUnit regarding test methods definitions in public interface?
ModelTest.h (no test methods defined)
@interface ModelTest : SenTestCase
@end
ModelTest.m
@implementation ModelTest : SenTestCase
- (void) testCreation {
...
}
@end
ModelTest.h (with test method definitions)
@interface ModelTest : SenTestCase
- (void) testCreation;
@end
Personally I think it's better to have a public test method definition reflected in the public interface. But what is the best practice? Is there a case when we can't avoid declaring these methods in public interface?