I’d like to write some small scale programs to get myself back into the language after being away a
year or more. I’m having trouble understanding again the development and testing model.
What I’d like to do is write an application which I can run from the UNIX command line, which
reads lines from stdin, does some processing, and prints to stdout. However, I’d like to be
able to test the program without having to go to the unix command line. I.e., I’d like to write
tests for intermediate functions by pushing a button within IntelliJ.
Can someone suggest a pattern for doing this, or a template, or a resource I can read which explains
how it is supposed to work?
I’ve created the project in IntelliJ, and I have a src/main/scala directory (where the source file[s] should live) directory and a src/test/scala directory (where the testing file[s] should live).
Certainly I’d love to use some property based testing, but as I understand, there is a huge amount of overhead boilerplate work necessary to get the first property based test to work. Hopefully I’m wrong.