title: Writing XCTestCase for Mac OS Command Line Tool
body: <p>I am trying to unit test a command line tool written for Mac OS.</p>
  
  <p>When I first create the project, XCode does not generate a tests group in the project navigator. When I try to add a new test target, it doesn't give me the option to specify my target as the "Target to be Tested".</p>
  
  <p>My question is this: is it even possible to use XCTest for a Command Line Tool project? Or is it just considered trivial to do so by virtue of the fact that I could just run it from the command line? I could understand that reasoning, but there is internal functionality I'd really like to test.</p>