I'd like to test that outlets are setup correctly through XCTest. I'd like to share my current approach: allocate the VC programmatically and check that outlets are not nil. Something I thought should be straightforward, but the test is failing.
MyViewController *mvc = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:[NSBundle mainBundle]];
[mvc awakeFromNib];
XCTAssert([mvc tableViewOutlet], @"Table view should be hooked up");
I wonder if I'm missing something obvious?