I have a Java and Python background, and when I learned those languages it worked well for me to create unit tests to exercise the code I’m learning. Writing tests help me to fully understand the concepts and the test cases organize the code by topic (test case for loops, another for OO etc). It also makes it easy to run just one test case when coding a new concept. I keep the code in Git so I can easily reference it, and add to it if new language concepts come up that I need to learn.
I have all this working in Xcode, except I selected an iOS project when creating the Xcode project, so now the iPhone emulator comes up when I run the unit tests even though there’s no UI code. I feel like Playgrounds are not a fit since it’s not really tailored to unit tests. And a command line project doesn’t seem right since this is just some code with no cmd line interaction.
Should I have selected “Static Library” as project type instead? Framework or Package seem like other candidates for project type. What do others use for non-ui code?