Topics / #unit-testing
Unit-testing projects on GitHub
Unit testing frameworks and practices for small-scale tests.
As of , the most-starred Unit-testing projects on GitHub are architecture-samples (45.9K stars), jest (45.5K stars) and googletest (39.8K stars). GitHub.Locker tracks 39 Unit-testing repositories with 696.4K stars combined. The fastest-growing on November 30 was deepeval, with +53 stars in a day.
Hot right now
Most stars gained in a day · Nov 30
deepeval
confident-ai/deepeval · ★ 19.5KDeepEval is an open-source LLM evaluation framework: a simple-to-use way to evaluate large-language model systems with research-backed metrics like G-Eval, answer relevancy, and hallucination checks.
vitest
vitest-dev/vitest · ★ 17.4KVitest is a next-generation testing framework for JavaScript and TypeScript, powered by Vite. It runs unit and component tests using your existing Vite setup.
+14pytest
pytest-dev/pytest · ★ 14.7Kpytest is a Python testing framework that makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries.
+12landmines
interfere-inc/landmines · ★ 593A set of Oxlint rules (a lint plugin) that stop AI coding agents from faking green checks: mocked tests, fixed sleeps, retried flakes, raised timeouts and comments that narrate the diff.
The all-time top
39 projects · by stars
- 45.9K
#1 · android/architecture-samplesarchitecture-samples
It's a collection of sample implementations of the same to-do app, each built on a different branch with a different Android architecture approach, meant to showcase and compare architectural patterns like MVVM with Compose, Hilt and Room.
- 45.5K
#2 · jestjs/jestjest
Jest is a JavaScript testing framework focused on simplicity, with built-in test running, assertions, and mocking that works out of the box for most JavaScript projects.
- 39.8K
#3 · 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.
- 4

tutorials
37.3Keugenp/tutorials · JavaA huge collection of small, focused tutorials for the Java ecosystem - one code module per topic - with a strong focus on Spring, Spring Boot and Spring Security.
- 5

interactive-coding-challenges
32Kdonnemartin/interactive-coding-challenges · PythonA collection of 120+ interactive, test-driven Python coding challenges covering algorithms and data structures commonly asked in coding interviews, each delivered as a Jupyter notebook with unit tests and a paired solution notebook, plus an included Anki flashcard deck.
- 6
symfony
31.4Ksymfony/symfony · PHPSymfony is a PHP framework for building web and console applications, plus a set of reusable PHP components. It is used by thousands of web applications and most of the popular PHP projects.
- 7

testify
26.3Kstretchr/testify · GoTestify 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.
- 8
mocha
22.9Kmochajs/mocha · JavaScriptMocha is a classic, battle-tested test framework for JavaScript — you write test suites that run on Node.js or directly in the browser.
- 9

nowinandroid
22.1Kandroid/nowinandroid · KotlinNow in Android is a fully functional Android app built entirely with Kotlin and Jetpack Compose. It doubles as an official reference for Android design and development best practices and, as a running app, delivers news updates about Android development.
- 10
jsdom
21.8Kjsdom/jsdom · JavaScriptjsdom is a pure-JavaScript implementation of many web standards — notably the WHATWG DOM and HTML Standards — for use with Node.js. It emulates enough of a browser subset to be useful for testing and scraping real-world web applications.
- 11
Catch2
21.6Kcatchorg/Catch2 · C++Catch2 is a unit testing framework for C++ that also provides basic micro-benchmarking features and simple BDD macros.
- 12

ava
20.8Kavajs/ava · JavaScriptAVA is a test runner for Node.js: it runs your tests with a concise API, detailed error output and thread isolation, so you can develop with confidence.
- 13

CleanArchitecture
20.7Kjasontaylordev/CleanArchitecture · C#An open-source .NET solution template that scaffolds a complete ASP.NET Core application structured around Clean Architecture, so teams start from a working, well-layered codebase instead of an empty project.
- 14
phpunit
20.1Ksebastianbergmann/phpunit · PHPPHPUnit is a programmer-oriented testing framework for PHP, built on the xUnit architecture - the classic pattern for unit testing frameworks.
- 15

react-testing-library
19.7Ktesting-library/react-testing-library · JavaScriptA lightweight set of React DOM testing utilities that helps you write maintainable component tests which exercise your app the way a user actually uses it.
- 16
deepeval
19.5Kconfident-ai/deepeval · PythonDeepEval is an open-source LLM evaluation framework: a simple-to-use way to evaluate large-language model systems with research-backed metrics like G-Eval, answer relevancy, and hallucination checks.
- 17

yoga
19Kreact/yoga · C++Yoga is an embeddable, high-performance flexbox layout engine written in C++ that computes UI layout trees and ships with bindings for multiple languages.
- 18

CleanArchitecture
18.6Kardalis/CleanArchitecture · C#A solution template for ASP.NET Core that gives you a proven Clean Architecture starting point — a loosely-coupled, dependency-inverted project layout also known as hexagonal, ports-and-adapters, or onion architecture.
- 19
msw
18.4Kmswjs/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.
- 20
vitest
17.4Kvitest-dev/vitest · TypeScriptVitest is a next-generation testing framework for JavaScript and TypeScript, powered by Vite. It runs unit and component tests using your existing Vite setup.
- 21

vim-go
16.2Kfatih/vim-go · Vim Scriptvim-go is a Vim plugin that adds Go language support to your editor: compiling, running and testing code, richer syntax highlighting, debugging, and gopls-powered completion and navigation.
- 22
jasmine
15.8Kjasmine/jasmine · JavaScriptJasmine is a Behavior Driven Development (BDD) testing framework for JavaScript, used to write and run specs (tests) for your code.
- 23

mockito
15.4Kmockito/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.
- 24

SwifterSwift
15.3KSwifterSwift/SwifterSwift · SwiftSwifterSwift is a collection of over 500 native Swift extensions that add handy methods, syntactic sugar, and performance improvements to primitive data types and UIKit/Cocoa classes.
- 25

pytest
14.7Kpytest-dev/pytest · Pythonpytest is a Python testing framework that makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries.
- 26
chromedp
13.4Kchromedp/chromedp · Gochromedp is a Go library that drives any browser supporting the Chrome DevTools Protocol — a faster, simpler way to automate Chrome from Go code, with no external dependencies.
- 27

nock
13.1Knock/nock · JavaScriptNock is a Node.js library that mocks HTTP servers so you can test code that performs HTTP requests without hitting a real network.
- 28

great_expectations
12Kfivetran/great_expectations · PythonGX Core (Great Expectations) is a Python framework for testing, validating, and documenting the quality of your data. Its core concept is the 'Expectation' — an expressive unit test for your data, built from the collective experience of thousands of data quality deployments.
- 29

karma
12Kkarma-runner/karma · JavaScriptKarma is a JavaScript test runner that executes your code in multiple real (not simulated) browsers. Its stated goal is to make test-driven development easy, fast and fun.
- 30

pest
11.8Kpestphp/pest · PHPPest is an elegant testing framework for PHP, built to be easy for both human developers and AI agents to write and read tests with.
- 31

BenchmarkDotNet
11.5Kdotnet/BenchmarkDotNet · C#BenchmarkDotNet is a .NET library that turns ordinary methods into reliable, repeatable performance benchmarks and reports detailed statistics about the results.
- 32

mockery
10.7Kmockery/mockery · PHPA PHP mock object framework for unit testing: it builds test doubles (mocks) through a succinct, human-readable DSL, so your tests can call fakes instead of real objects.
- 33

zenc-lang
4.3KZuhaitz-dev/zenc-lang · CZen C is a modern systems programming language with high-level ergonomics (type inference, pattern matching, generics, traits, async/await) that compiles to human-readable GNU C/C11 while maintaining 100% C ABI compatibility.
- 34

coost
4.2Kidealvin/coost · C++coost (aka co) is a lightweight, high-performance, easy-to-use C++ base library whose stated goal is to make C++ programming simple and enjoyable.
- 35

wordpress-develop
3.5KWordPress/wordpress-develop · PHPThe official WordPress development repository: the source code of WordPress core, kept as a Git mirror of WordPress's subversion repository. It exists for working on WordPress itself, not for installing a blog.
- 36

AstraFlow
853seifmoustafa/AstraFlow · HTMLAstraFlow is a modular .NET suite of 16 focused packages for explicit request dispatch, object mapping, query projections, compile-time analyzers, source generators, diagnostics, observability, and test workflows.
- 37

landmines
593interfere-inc/landmines · TypeScriptA set of Oxlint rules (a lint plugin) that stop AI coding agents from faking green checks: mocked tests, fixed sleeps, retried flakes, raised timeouts and comments that narrate the diff.
- 38
XRepoTest
168solis-team/XRepoTest · PythonXRepoTest is a multilingual benchmark that evaluates how well large language models generate unit tests for real-world functions across five programming languages, using Docker-based execution to compile and run every generated test against the actual source code.
- 39

SolidityScanLegend
117whitakeroliver/SolidityScanLegend · PHPSolidityScanLegend is described as a tool for real-time, high-performance data extraction and analysis built on a scalable, auto-scaling architecture with efficient query processing.
Related topics
Often tagged together