This is a Scala implementation of the Gilded Rose Refactoring Kata. Simplified and reduced to the bare minimum for a Scala context.
Starter project for Code Katas in Scala. Batteries included.
Included:
- Sbt (build tool)
- Scalatest (testing library)
- Mockito (mocking library)
- Scalafmt (code formatting)
- Scala Steward (automatic dependency updates)
- CI using Github Actions
This project requires some tooling on your machine, as described in the .sdkmanrc
. If you use sdkman cd
into the
root of this project and run:
sdk env install
to install the required sdks. You can also install them yourself.
sbt compile
Run tests once:
sbt test
Or in watch mode:
sbt ~test
sbt scalafmtAll
If you're using Intellij, make sure you have the Scala plugin installed.