SBT
- sbt basics. sbt is Scala’s build tool: settings as Scala code, incremental compilation, an interactive shell.
- Multi-module builds. Projects split into modules with declared dependencies: boundaries the build enforces.
- Dependencies. Dependencies declare versions sbt resolves: with eviction reports when libraries disagree.
Testing
- munit and ScalaTest. Scala tests with munit or ScalaTest: assertions and fixtures, run per build.
- Property-based testing. ScalaCheck generates inputs against stated properties: laws, not examples.
- Testing pure code. A pure core makes tests trivial: data in, data out, no mocks in sight.
Package and Module Design
- Packages. Packages organise code and control visibility: private[billing] scopes to a subsystem.
- API discipline. Library APIs export the minimum: every public name a promise, versioned semantically.
- Binary compatibility. Scala libraries track binary compatibility: checked by tooling before release, not discovered after.
Before and after this level
- Before: Level 10: JVM Interoperability: Java Interop, Runtime Behaviour, Mixed JVM Systems.
- Next: Level 12: Performance & Production: JVM Performance, Functional Allocation Trade-Offs, Production Scala Design.
In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See Checkpoints and flashcards.
Frequently asked questions
What does Scala Level 11: Build & Testing cover?
SBT, Testing, Package and Module Design: 3 lessons and 9 ideas.
What should I know before this level?
The level before it, Level 10: JVM Interoperability, which covers Java Interop, Runtime Behaviour, Mixed JVM Systems.