A tutorial on how to write unit tests and do performance testing of Apache Spark code in Scala. My New Year's resolution: write more tests! May be, this is the year when I finally move over to TDD ...