Topics / #mocking-framework
Mocking-framework projects on GitHub
Libraries for stubbing and faking dependencies in tests.
As of , the most-starred Mocking-framework projects on GitHub are googletest (39.7K stars), testify (26.2K stars) and Mock (19.6K stars). GitHub.Locker tracks 5 Mocking-framework repositories with 119.2K stars combined. The fastest-growing on October 18 was googletest, with +2 stars in a day.
Hot right now
Most stars gained in a day · Oct 18
+2googletest
google/googletest · ★ 39.7KGoogle's testing and mocking framework for C++, built on the xUnit architecture. It merges the formerly separate GoogleTest and GoogleMock projects, which Google now maintains and releases together.
+2testify
stretchr/testify · ★ 26.2KTestify is a toolkit of Go packages that add assertions, mocking and test suites on top of the standard library, so tests are easier to write and failures are easy to read.
msw
mswjs/msw · ★ 18.3KMock Service Worker (MSW) is the industry-standard API mocking library for JavaScript. It intercepts the network requests your app makes and serves mock responses you define, so you never touch a real backend.
The all-time top
5 projects · by stars
- 39.7K
#1 · google/googletestgoogletest
Google's testing and mocking framework for C++, built on the xUnit architecture. It merges the formerly separate GoogleTest and GoogleMock projects, which Google now maintains and releases together.
- 26.2K
#2 · stretchr/testifytestify
Testify is a toolkit of Go packages that add assertions, mocking and test suites on top of the standard library, so tests are easier to write and failures are easy to read.
- 19.6K
#3 · nuysoft/MockMock
Mock.js is a JavaScript library that generates simulated data and mocks ajax requests, so front-end development and automated tests can run without waiting on a real back-end.
- 4
msw
18.3Kmswjs/msw · TypeScriptMock Service Worker (MSW) is the industry-standard API mocking library for JavaScript. It intercepts the network requests your app makes and serves mock responses you define, so you never touch a real backend.
- 5

mockito
15.5Kmockito/mockito · JavaMockito is a mocking framework for unit tests written in Java, and the most popular one: it creates mock objects so you can test a class in isolation from its dependencies.
Related topics
Often tagged together
- library1,595
- open-source5,748
- testing341
- developer-tools2,981
- mit3,387
- mocking12
- test-automation43
- testing-tools26
- unit-testing51
- code-quality101
- framework767
- mock16
- api1,116
- browser413
- developers438
- frontend1,087
- javascript1,857
- nodejs1,528
- npm1,033
- tdd21
- test-driven-development5
- test-framework7
- web2,485
- web-development594