Useful XCode shortcut for creating tests

31 views
Skip to first unread message

Andrei Patru

unread,
Aug 16, 2012, 10:18:47 AM8/16/12
to ghu...@googlegroups.com
Hi,

I thought I'd share a small snippet I use for creating test methods in XCode. I think it would be useful in the future if the setUp_ and tearDown_ would be automatically picked up by the GHUnit framework at the start and end of the test method.


- (void)test<#MethodName#> {

[self setUp_<#testMethodName#>];

[self tearDown_<#testMethodName#>];

}

- (void)setUp_<#testMethodName#> { 
}

- (void)tearDown_<#testMethodName#> {

}

Cheers! 
Reply all
Reply to author
Forward
0 new messages