Skip to content

rstraub/scala-kata-base

Repository files navigation

Scala Kata Base

Scala CI Scala Steward badge codecov

Starter project for Code Katas in Scala. Batteries included.

Included:

Installation

This project requires a JDK 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 it. You can also install them yourself.

The build tool (Sbt) and Scala are installed automatically by the wrapper script located at ./sbtx. It will grab the correct versions based off the project configuration.

Compile

./sbtx compile

Tests

Run tests once:

./sbtx test

Or in watch mode:

./sbtx ~test

Formatting

./sbtx scalafmtAll
./sbtx scalafixAll

Code Coverage

For generating a code coverage report run:

./sbtx clean coverage test coverageReport

Which generates a report in target/scala-2.13/scoverage-report.

Git Hooks

To install the git hooks run:

./hooks/install

IDE

If you're using Intellij, make sure you have the Scala plugin installed.

About

Scala 2.X base project to do Code Katas

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published