Approvals-Scala is a lightweight open source assertion/verification library to facilitate unit testing. It alleviates the burden of hand-writing assertions.
Approvals-Scala is released on Bintray.
In your build.sbt
, add this dependency:
resolvers += Resolver.bintrayRepo("writethemfirst", "maven")
libraryDependencies += "com.github.writethemfirst" % "approvals-scala" % "1.0.1"
If you use this library in a project with several modules, you likely want to store approved files in folders relative to the appropriate submodule.
In order for approvals to detect which module is currently tested, you need the sbt JVM to be forked for each module :
ThisBuild / Test / fork := true
First, if you'd just want a sample project to see it in action, we have one for you!
This project is completely open to any contributions! (and remember: feedback is a valuable contribution!)
Do not hesitate to:
- Submit issues about any feedbacks you may have about the library,
- Send us a Pull Request with any contribution you think about,
- Have a look at open issues if you want to find a topic to work on,
Before contributing though, please have a look at our Code of Conduct (because we value humans and their differences) and to our Contribution Guide (because we think that a few rules allow to work faster and safer).
Do not hesitate to discuss anything from those documents if you feel they need any modification though.
Our code is released under GNU General Public License v3.0.