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.

51Projects
932.5KStars in total
+110Stars in a day

Hot right now

Most stars gained in a day · Oct 16

The all-time top

51 projects · by stars

  1. #1 · angular/angular.js

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

    58.5K
  2. #2 · 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
  3. #3 · 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
  1. 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.

  2. 5

    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.

  3. 6

    interactive-coding-challenges

    31.9Kdonnemartin/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.

  4. 7

    symfony

    31.2Ksymfony/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.

  5. 8

    testify

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

  6. 9

    javascript-testing-best-practices

    24.6Kgoldbergyoni/javascript-testing-best-practices · JavaScript

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

  7. 10

    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.

  8. 11

    nowinandroid

    21.9Kandroid/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.

  9. 12

    jsdom

    21.7Kjsdom/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.

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

  11. 14

    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.

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

  13. 16

    vue-admin-template

    20.4KPanJiaChen/vue-admin-template · JavaScript

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

  14. 17

    js-stack-from-scratch

    20.1Kverekia/js-stack-from-scratch · JavaScript

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

  15. 18

    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.

  16. 19

    jstraining

    20Kruanyf/jstraining

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

  17. 20

    enzyme

    19.8Kenzymejs/enzyme · JavaScript

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

  18. 21

    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.

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

  20. 23

    deepeval

    18.9Kconfident-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.

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

  22. 25

    msw

    18.3Kmswjs/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.

  23. 26

    vitest

    17.3Kvitest-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.

  24. 27

    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.

  25. 28

    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.

  26. 29

    mockito

    15.5Kmockito/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.

  27. 30

    electron-vue

    15.4KSimulatedGREG/electron-vue · JavaScript

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

  28. 31

    SwifterSwift

    15.2KSwifterSwift/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.

  29. 32

    pytest

    14.6Kpytest-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.

  30. 33

    truffle

    13.9KConsenSys-archive/truffle · TypeScript

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

  31. 34

    chromedp

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

  32. 35

    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.

  33. 36

    cmake-examples

    13.1Kttroy50/cmake-examples · CMake

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

  34. 37

    angular-seed

    13.1Kangular/angular-seed · JavaScript

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

  35. 38

    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.

  36. 39

    great_expectations

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

  37. 40

    pest

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

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

  39. 42

    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.

  40. 43

    pollyjs

    10.3KNetflix/pollyjs · JavaScript

    It'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.

  41. 44

    angular-webpack-starter

    10.2KPatrickJS/angular-webpack-starter · JavaScript

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

  42. 45

    zenc

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

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

  44. 47

    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.

  45. 48

    privacy-preserving-control-plane

    425gbenletoluwase/privacy-preserving-control-plane · Java

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

  46. 49

    XRepoTest

    167solis-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.

  47. 50

    SolidityScanLegend

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

  48. 51

    BlockNetDiamond

    117lgomesappj/BlockNetDiamond · JavaScript

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

Often tagged together