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 angular.js (58.5K stars), architecture-samples (45.9K stars) and jest (45.5K stars). GitHub.Locker tracks 51 Unit-testing repositories with 932.5K stars combined. The fastest-growing on October 16 was deepeval, with +21 stars in a day.
Hot right now
Most stars gained in a day · Oct 16
deepeval
confident-ai/deepeval · ★ 18.9KDeepEval 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.3KVitest is a next-generation testing framework for JavaScript and TypeScript, powered by Vite. It runs unit and component tests using your existing Vite setup.
+7googletest
google/googletest · ★ 39.6KGoogle'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.
mocha
mochajs/mocha · ★ 22.9KMocha is a classic, battle-tested test framework for JavaScript — you write test suites that run on Node.js or directly in the browser.
The all-time top
51 projects · by stars
- 58.5K
#1 · angular/angular.jsangular.js
AngularJS is a JavaScript framework for client-side web apps that makes the browser smarter: HTML is your template language, extended with extra syntax to describe app components clearly.
- 45.9K
#2 · 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
#3 · 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.
- 4

googletest
39.6Kgoogle/googletest · C++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.
- 5

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.
- 6

interactive-coding-challenges
31.9Kdonnemartin/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.
- 7
symfony
31.2Ksymfony/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.
- 8

testify
26.2Kstretchr/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.
- 9

javascript-testing-best-practices
24.6Kgoldbergyoni/javascript-testing-best-practices · JavaScriptA free, in-depth guide with 50+ best practices for testing JavaScript and Node.js applications, compiled and curated from dozens of blog posts, books and tools.
- 10
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.
- 11

nowinandroid
21.9Kandroid/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.
- 12
jsdom
21.7Kjsdom/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.
- 13
Catch2
21.5Kcatchorg/Catch2 · C++Catch2 is a unit testing framework for C++ that also provides basic micro-benchmarking features and simple BDD macros.
- 14

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.
- 15

CleanArchitecture
20.6Kjasontaylordev/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.
- 16

vue-admin-template
20.4KPanJiaChen/vue-admin-template · JavaScriptA minimal admin dashboard template for Vue 2 by PanJiaChen: a ready frontend skeleton with Element UI components, axios, iconfont icons, permission control and lint, meant as a starting point for your own admin panel.
- 17

js-stack-from-scratch
20.1Kverekia/js-stack-from-scratch · JavaScriptA step-by-step tutorial that assembles a modern JavaScript web app stack from scratch — from Node and Yarn through React, Redux, and server-side rendering up to deploying on Heroku.
- 18
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.
- 19

jstraining
20Kruanyf/jstrainingTraining materials for a JavaScript full-stack bootcamp: they teach the basics needed to build both the front end and back end of a simple web application.
- 20

enzyme
19.8Kenzymejs/enzyme · JavaScriptEnzyme is a JavaScript testing utility for React that makes it easier to test your React Components' output — you can also manipulate, traverse, and in some ways simulate runtime given the output.
- 21

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.
- 22

yoga
18.9Kreact/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.
- 23
deepeval
18.9Kconfident-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.
- 24
CleanArchitecture
18.5Kardalis/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.
- 25
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.
- 26
vitest
17.3Kvitest-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.
- 27

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.
- 28
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.
- 29

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.
- 30

electron-vue
15.4KSimulatedGREG/electron-vue · JavaScriptelectron-vue is a boilerplate for building Electron desktop apps with Vue.js. It bundles vue-cli scaffolding, webpack with vue-loader, common Vue plugins, and packaging tools so you do not have to wire up an Electron+Vue app from scratch.
- 31
SwifterSwift
15.2KSwifterSwift/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.
- 32

pytest
14.6Kpytest-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.
- 33
truffle
13.9KConsenSys-archive/truffle · TypeScriptTruffle is a development environment, testing framework, and asset pipeline for Ethereum, aiming to make life as an Ethereum developer easier. It bundles contract compilation, deployment, and testing into one workflow.
- 34

chromedp
13.3Kchromedp/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.
- 35

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.
- 36

cmake-examples
13.1Kttroy50/cmake-examples · CMakeA tutorial repository of example CMake projects, laid out from basic to advanced, showing how to use modern CMake for building, testing, and packaging C++ software.
- 37

angular-seed
13.1Kangular/angular-seed · JavaScriptA seed project — an application skeleton for AngularJS web apps. Cloning it gives you a working sample app plus a preconfigured dev and testing environment to build on.
- 38

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.
- 39

great_expectations
11.9Kfivetran/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.
- 40

pest
11.7Kpestphp/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.
- 41

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.
- 42

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.
- 43

pollyjs
10.3KNetflix/pollyjs · JavaScriptIt's Polly.JS, a JavaScript library from Netflix that records, replays, and stubs HTTP interactions, so your test suite doesn't need a live API to run against.
- 44

angular-webpack-starter
10.2KPatrickJS/angular-webpack-starter · JavaScriptAn Angular starter kit: a prebuilt repo that pairs Angular with a Webpack 4 build, TypeScript, Ahead-of-Time compilation and a full test setup, so a new Angular app runs without hand-wiring the toolchain.
- 45

zenc
4.3Kzenc-lang/zenc · 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.
- 46

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.
- 47

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.
- 48

privacy-preserving-control-plane
425gbenletoluwase/privacy-preserving-control-plane · JavaA Java control plane that bundles four coupled mechanisms for production ML pipelines: forecast-driven autoscaling, zero-shot PII redaction at the point of processing, governed model promotion, and drift/anomaly detection.
- 49
XRepoTest
167solis-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.
- 50

SolidityScanLegend
118whitakeroliver/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.
- 51

BlockNetDiamond
117lgomesappj/BlockNetDiamond · JavaScriptBlockNetDiamond is a library that implements a distributed ledger with a consensus-driven architecture, aimed at developers who need a straightforward building block for cryptographic security.
Related topics
Often tagged together