Skip to content

Colisweb/approvals-scala

Repository files navigation

Write Them First!


Approvals-Scala

Approvals-Scala is a lightweight open source assertion/verification library to facilitate unit testing. It alleviates the burden of hand-writing assertions.

Get Approvals-Scala

Approvals-Scala is released on Bintray.

Sbt

In your build.sbt, add this dependency:

resolvers += Resolver.bintrayRepo("writethemfirst", "maven")

libraryDependencies += "com.github.writethemfirst" % "approvals-scala" % "1.0.1"

Multi-modules project

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

Sample project

First, if you'd just want a sample project to see it in action, we have one for you!

Help/Contribute

This project is completely open to any contributions! (and remember: feedback is a valuable contribution!)

Do not hesitate to:

  1. Submit issues about any feedbacks you may have about the library,
  2. Send us a Pull Request with any contribution you think about,
  3. 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.

License

Our code is released under GNU General Public License v3.0.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages