添加unit test

来源:互联网 发布:ip和域名登录 编辑:程序博客网 时间:2024/06/04 18:48

在已有工程中添加unit test

1.add target:  cocoa touch test bundle,for example mytest

2.add framework: OCHamcrestIOS.framework and OCMockitoIOS.framework, select target we just created , which is mytesk, we will find framework is in link library with librarys andframework search path

3.add new schema, named mytest, select the schema, and select product -> test

4.if include other project.h, modify header search path

0 0
原创粉丝点击