EVERYTHING XIAOMI
Get listed
Side by side

Mockito vs ScalaCheck

Mockito logo

Mockito

6.3#14 in unit testing frameworksFree plan
Free planAndroidLinuxSelf-hosted
Visit

ScalaCheck

6.6#1 in property-based testing toolsFree plan
Free planLinuxmacOSWindows
Visit

What both publish

FactMockitoScalaCheck
DistributionThe recommended installation method is adding the mockito-core dependency through a build system.Build artifacts are published in the Central Repository, and the download page gives an sbt dependency declaration.
LicenseThe repository publishes Mockito under the MIT License.The project build identifies its license as BSD-3-Clause.
PurposeMockito is a mocking framework for writing unit tests in Java.ScalaCheck is a Scala library for automated property-based testing of Scala or Java programs.
SecurityThe repository links to a security policy.The GitHub repository page lists a security policy.
SupportThe project directs users to its mailing list for questions and documentation feedback, and GitHub for bugs and feature requests.The documentation page links to GitHub bug reports, a mailing list and Stack Overflow.

Mockito plans

  • MockitoFree

ScalaCheck plans

  • ScalaCheckFree

Pick Mockito if…

Mockito suits Java developers writing unit tests who need to control dependencies and check interactions. Android developers can use it with Dexmaker, subject to the stated platform requirements.

Pick ScalaCheck if…

ScalaCheck is suited to developers testing Scala or Java code with randomized property checks. It fits projects using sbt or the listed testing integrations, and can also be run standalone.

Charts they share