cedar-bdd

iOS testing controllers with Cedar

纵饮孤独 提交于 2019-12-13 04:10:13
问题 I'm trying to test a controller(s) with Cedar but can't really understand why it's not working. The controller never gets shown, viewDidLoad or viewDidAppear are never called. Is this something Cedar wasn't meant to do or just my mistake? describe(@"MyController", ^{ __block UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard_iPhone" bundle:nil]; __block UINavigationController *root = (UINavigationController *)[[[[UIApplication sharedApplication] delegate]window

Testing the existence of a presentedViewController using Cedar

爱⌒轻易说出口 提交于 2019-12-13 02:58:39
问题 I am trying to test if a presented view controller exists when I have automated the tapping of a table row cell. When I attempt to test if the controller's presentedViewController is of a given type of class it always results to nil. I'm assuming the new presented view controller is transitioning to being the presented view controller and that is why the [controller presentedViewController] is nil. I am using the Cedar BDD testing framework. I have installed the PivotalCore libs to provide

no type named 'shared_ptr' in namespace 'std'

核能气质少年 提交于 2019-12-01 06:49:48
Hopefully this helps somebody else Trying to compile an iOS project with Cedar BDD kept failing with no type named 'shared_ptr' in namespace 'std' error message. It was obviously a C++ error but couldn't understand why the C++ library Xcode was using didn;t have the shared_ptr type defined until I discovered the build settings of the target provides two libraries to choose from libstdc++ (compiler default) libc++ selecting libc++ fixes the problem see screenshot Apple ship a very old version of libstdc++ that doesn't support C++11, so if you use libstdc++ you can't use C++11 features. jeff In

no type named 'shared_ptr' in namespace 'std'

北城余情 提交于 2019-12-01 05:22:21
问题 Hopefully this helps somebody else Trying to compile an iOS project with Cedar BDD kept failing with no type named 'shared_ptr' in namespace 'std' error message. It was obviously a C++ error but couldn't understand why the C++ library Xcode was using didn;t have the shared_ptr type defined until I discovered the build settings of the target provides two libraries to choose from libstdc++ (compiler default) libc++ 回答1: selecting libc++ fixes the problem see screenshot 回答2: Apple ship a very