Need advice about which tool to choose?Ask the StackShare community!

Mockito

516
147
+ 1
0
Robolectric

53
27
+ 1
0
Add tool

Mockito vs Robolectric: What are the differences?

Developers describe Mockito as "Tasty mocking framework for unit tests in Java". It is a mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API. It doesn’t give you hangover because the tests are very readable and they produce clean verification errors. On the other hand, Robolectric is detailed as "An open-source testing framework for Android". It is a framework that brings fast and reliable unit tests to Android. Tests run inside the JVM on your workstation in seconds. Test drive your Android application with robolectric.

Mockito and Robolectric can be primarily classified as "Testing Frameworks" tools.

Mockito and Robolectric are both open source tools. It seems that Mockito with 9.17K GitHub stars and 1.63K forks on GitHub has more adoption than Robolectric with 4.63K GitHub stars and 1.19K GitHub forks.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More