Getting Started
Getting Started#
SBT Binary Dependency#
In your build.sbt you will unfortunately need to add a
custom resolver.
Hedgehog is released for every commit and so the "version" will be a git commit hash.
You can find the bintray repository here.
SBT Source Dependency#
This project can be added as an SBT subproject.
NOTE: Depending on your scala version(s) SBT might not resolve.
SBT Testing#
Scala Hedgehog comes with a very primitive runner interface, and supports the SBT testing extension.
IntelliJ#
The IntelliJ scala plugin only has
hard-coded support for the most popular test frameworks.
While Hedgehog is obviously not included in that list, an may never be, by extending the runner
Properties tests can be run as an application (as Properties includes a handy main function).
NOTE: This requires the test to be an object and not a class.
Example#
See the examples module for working versions.