【发布时间】:2014-08-21 22:16:20
【问题描述】:
我正在尝试 XCTest 框架
@implementation UnitTestPOCTests
- (void)setUp
{
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testAditionClass
{
Addition *addObj = [[Addition alloc]init];
XCTAssertNotNil(addObj,@"AddtionClassExists");
}
我在我的测试类中编写了 testAditionClass 测试方法,但是当我运行测试方法时,它在状态栏中显示了 Testing....
它甚至没有被终止。
如果有人知道解决方案,请帮助我。 提前致谢
【问题讨论】:
-
你能在测试方法中添加一个断点来检查它是否正在运行吗?
-
@Fogmeister 我为该方法添加了一个刹车点,但它甚至没有被调用
标签: ios unit-testing xcode5 xctest