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.

39Projects
696.4KStars in total
+162Stars in a day

Hot right now

Most stars gained in a day · Nov 30

The all-time top

39 projects · by stars

  1. #1 · android/architecture-samples

    architecture-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.9K
  2. #2 · jestjs/jest

    jest

    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.

    45.5K
  3. #3 · google/googletest

    googletest

    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.

    39.8K
  1. 4

    tutorials

    37.3Keugenp/tutorials · Java

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

  2. 5

    interactive-coding-challenges

    32Kdonnemartin/interactive-coding-challenges · Python

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

  3. 6

    symfony

    31.4Ksymfony/symfony · PHP

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

  4. 7

    testify

    26.3Kstretchr/testify · Go

    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.

  5. 8

    mocha

    22.9Kmochajs/mocha · JavaScript

    Mocha is a classic, battle-tested test framework for JavaScript — you write test suites that run on Node.js or directly in the browser.

  6. 9

    nowinandroid

    22.1Kandroid/nowinandroid · Kotlin

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

  7. 10

    jsdom

    21.8Kjsdom/jsdom · JavaScript

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

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

  9. 12

    ava

    20.8Kavajs/ava · JavaScript

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

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

  11. 14

    phpunit

    20.1Ksebastianbergmann/phpunit · PHP

    PHPUnit is a programmer-oriented testing framework for PHP, built on the xUnit architecture - the classic pattern for unit testing frameworks.

  12. 15

    react-testing-library

    19.7Ktesting-library/react-testing-library · JavaScript

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

  13. 16

    deepeval

    19.5Kconfident-ai/deepeval · Python

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

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

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

  16. 19

    msw

    18.4Kmswjs/msw · TypeScript

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

  17. 20

    vitest

    17.4Kvitest-dev/vitest · TypeScript

    Vitest is a next-generation testing framework for JavaScript and TypeScript, powered by Vite. It runs unit and component tests using your existing Vite setup.

  18. 21

    vim-go

    16.2Kfatih/vim-go · Vim Script

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

  19. 22

    jasmine

    15.8Kjasmine/jasmine · JavaScript

    Jasmine is a Behavior Driven Development (BDD) testing framework for JavaScript, used to write and run specs (tests) for your code.

  20. 23

    mockito

    15.4Kmockito/mockito · Java

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

  21. 24

    SwifterSwift

    15.3KSwifterSwift/SwifterSwift · Swift

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

  22. 25

    pytest

    14.7Kpytest-dev/pytest · Python

    pytest is a Python testing framework that makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries.

  23. 26

    chromedp

    13.4Kchromedp/chromedp · Go

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

  24. 27

    nock

    13.1Knock/nock · JavaScript

    Nock is a Node.js library that mocks HTTP servers so you can test code that performs HTTP requests without hitting a real network.

  25. 28

    great_expectations

    12Kfivetran/great_expectations · Python

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

  26. 29

    karma

    12Kkarma-runner/karma · JavaScript

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

  27. 30

    pest

    11.8Kpestphp/pest · PHP

    Pest is an elegant testing framework for PHP, built to be easy for both human developers and AI agents to write and read tests with.

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

  29. 32

    mockery

    10.7Kmockery/mockery · PHP

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

  30. 33

    zenc-lang

    4.3KZuhaitz-dev/zenc-lang · C

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

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

  32. 35

    wordpress-develop

    3.5KWordPress/wordpress-develop · PHP

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

  33. 36

    AstraFlow

    853seifmoustafa/AstraFlow · HTML

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

  34. 37

    landmines

    593interfere-inc/landmines · TypeScript

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

  35. 38

    XRepoTest

    168solis-team/XRepoTest · Python

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

  36. 39

    SolidityScanLegend

    117whitakeroliver/SolidityScanLegend · PHP

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

Often tagged together