Exercism Exercises in Scala
Please see the contributing guide
Scala exercises are run by the scala-test-runner.
It ignores the dependencies listed in the sbt
files of the exercises. It's important to add all dependencies necessary to run the exercise to the scala-test-runner's dependencies.
testgen
contains a project for generating test suites from canonical test data.
You can run it as follows:
sbt testgen / run <exercise-slug> <path-to-canonical-data> <optional-path-to-generated-file>
where:
exercise-slug
is the slug of one of the exercises listed in the config.json file.path-to-canonical-data
is a local path to the canonical data, which could be obtained by runningbin/fetch-configlet
andbin/configlet info -v d
optional-path-to-generated-file
an optional path for the generated file like./TestSuite.scala
.
Note, that existing iteration of the testgen
is not yet used.
We welcome pull requests that provide fixes to existing test suites (missing tests, interesting edge cases, improved APIs), as well as new problems.
If you're unsure, then go ahead and open a GitHub issue, and we'll discuss the change.
Please submit changes to a single problem per pull request unless you're submitting a general change across many of the problems (e.g. formatting).
The Scala icon used on Exercism is inspired by the official Scala logo, which is copyright École Polytechnique Fédérale de Lausanne.