Project Layout

Learn the settings and tasks to run tests on an sbt application.

The main focuses of this course are testing and leveraging various Scala testing libraries effectively. To avoid unnecessary complexity, we’ll keep the code under test as simple as possible. This lesson introduces our running example, a very simplified model of the Educative platform, and shows the structure of our sbt project.

Running example

Our running example will be a very simplified model of the Educative platform. It features many courses, each of which has an author, one or more tags, one or more lessons, and a price. Along the way, we’ll make this example more complex and test several aspects of the classes involved in it. For now we’ll use the following model in Scala 3:

Get hands-on with 1400+ tech skills courses.