This video is a crash course for unit testing Scala code with a framework called ScalaTest. Unit testing is a concept for automatically validating programmers assumptions at a press of a button which is an invaluable tool in a professional software developers toolbox. In addition to learning the basics of writing and running unit tests with ScalaTest we will also learn how to catch certain errors at compile time with the help or Artimas SuperSafe Scala compiler plugin, generate ScalaTest HTML reports and measure how much production code is covered by the tests with the help of the sbt-scoverage SBT plugin.
The code is here:
https://github.com/DevInsideYou/credit-card-generator-and-validator/tree/f0a01c0e8ff860e793ea604880519cb9dc41a742
The ScalaTest website is here:
http://www.scalatest.org/
The (deprecated) pegdown library is here:
https://github.com/sirthias/pegdown
The Scalactic website is here:
http://www.scalactic.org/
The Supersafe Scala compiler plugin is here:
https://www.artima.com/supersafe_user_guide.html
The sbt-scoverage SBT plugin is here:
https://github.com/scoverage/sbt-scoverage
The µTest website is here:
https://github.com/lihaoyi/utest
The specs2 website is here:
https://etorreborre.github.io/specs2/
The ScalaCheck website is here:
https://www.scalacheck.org/
The (unofficial) documentation for credit card generation & validation is here:
https://www.freeformatter.com/credit-card-number-generator-validator.html#cardFormats
This video is part of the following playlist: